Commit eada30e4 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Guard ash::window_util::InstallResizeHandleWindowTargeterForWindow() use

.. in BrowserNonClientBrowserFrameViewAsh ctor.

It is the scope of Bug 1067535 to investigate further whether this
function will be needed for lacroes.

BUG=1113900, 1067535
R=jamescook@chromium.org

Change-Id: I9f9539e40bec72aa96e8a0b5b50da220689ba6a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533177
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826634}
parent afa3670a
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <algorithm> #include <algorithm>
#include "ash/public/cpp/window_properties.h" #include "ash/public/cpp/window_properties.h"
#include "ash/wm/window_util.h"
#include "base/metrics/user_metrics.h" #include "base/metrics/user_metrics.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "build/build_config.h" #include "build/build_config.h"
...@@ -67,6 +66,7 @@ ...@@ -67,6 +66,7 @@
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/public/cpp/app_types.h" #include "ash/public/cpp/app_types.h"
#include "ash/wm/window_util.h"
#endif // BUILDFLAG(IS_CHROMEOS_ASH) #endif // BUILDFLAG(IS_CHROMEOS_ASH)
namespace { namespace {
...@@ -95,8 +95,12 @@ BrowserNonClientFrameViewAsh::BrowserNonClientFrameViewAsh( ...@@ -95,8 +95,12 @@ BrowserNonClientFrameViewAsh::BrowserNonClientFrameViewAsh(
BrowserFrame* frame, BrowserFrame* frame,
BrowserView* browser_view) BrowserView* browser_view)
: BrowserNonClientFrameView(frame, browser_view) { : BrowserNonClientFrameView(frame, browser_view) {
#if BUILDFLAG(IS_CHROMEOS_ASH)
// TODO(https://crbug.com/1067535): Check whether Ash/Chrome and Lacros
// will share the same ResizeHandler class.
ash::window_util::InstallResizeHandleWindowTargeterForWindow( ash::window_util::InstallResizeHandleWindowTargeterForWindow(
frame->GetNativeWindow()); frame->GetNativeWindow());
#endif
} }
BrowserNonClientFrameViewAsh::~BrowserNonClientFrameViewAsh() { BrowserNonClientFrameViewAsh::~BrowserNonClientFrameViewAsh() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment