Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Unified Diff: ash/wm/panels/panel_frame_view.cc

Issue 2907853002: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (Closed)
Patch Set: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (removed some more wm_window.h) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/panels/panel_frame_view.h ('k') | ash/wm/panels/panel_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panels/panel_frame_view.cc
diff --git a/ash/wm/panels/panel_frame_view.cc b/ash/wm/panels/panel_frame_view.cc
index e5e1104dff017a88d3dfb21de33a9bcc40e0bd6d..a851e2a3246c6493a7f4f3f300fc9d47d86d8850 100644
--- a/ash/wm/panels/panel_frame_view.cc
+++ b/ash/wm/panels/panel_frame_view.cc
@@ -8,7 +8,7 @@
#include "ash/frame/default_header_painter.h"
#include "ash/frame/frame_border_hit_test.h"
#include "ash/shell.h"
-#include "ash/wm_window.h"
+#include "ash/wm/resize_handle_window_targeter.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/window.h"
#include "ui/base/hit_test.h"
@@ -24,7 +24,8 @@ const char PanelFrameView::kViewClassName[] = "PanelFrameView";
PanelFrameView::PanelFrameView(views::Widget* frame, FrameType frame_type)
: frame_(frame), caption_button_container_(nullptr), window_icon_(nullptr) {
- GetWidgetWindow()->InstallResizeHandleWindowTargeter(nullptr);
+ GetWidgetWindow()->SetEventTargeter(
+ base::MakeUnique<ResizeHandleWindowTargeter>(GetWidgetWindow(), nullptr));
DCHECK(!frame_->widget_delegate()->CanMaximize());
if (frame_type != FRAME_NONE)
InitHeaderPainter();
@@ -38,8 +39,8 @@ PanelFrameView::~PanelFrameView() {
void PanelFrameView::SetFrameColors(SkColor active_frame_color,
SkColor inactive_frame_color) {
header_painter_->SetFrameColors(active_frame_color, inactive_frame_color);
- GetWidgetWindow()->aura_window()->SetProperty(
- aura::client::kTopViewColor, header_painter_->GetInactiveFrameColor());
+ GetWidgetWindow()->SetProperty(aura::client::kTopViewColor,
+ header_painter_->GetInactiveFrameColor());
}
const char* PanelFrameView::GetClassName() const {
@@ -48,8 +49,8 @@ const char* PanelFrameView::GetClassName() const {
void PanelFrameView::InitHeaderPainter() {
header_painter_.reset(new DefaultHeaderPainter);
- GetWidgetWindow()->aura_window()->SetProperty(
- aura::client::kTopViewColor, header_painter_->GetInactiveFrameColor());
+ GetWidgetWindow()->SetProperty(aura::client::kTopViewColor,
+ header_painter_->GetInactiveFrameColor());
caption_button_container_ = new FrameCaptionButtonContainerView(frame_);
AddChildView(caption_button_container_);
@@ -63,8 +64,8 @@ void PanelFrameView::InitHeaderPainter() {
}
}
-WmWindow* PanelFrameView::GetWidgetWindow() {
- return WmWindow::Get(frame_->GetNativeWindow());
+aura::Window* PanelFrameView::GetWidgetWindow() {
+ return frame_->GetNativeWindow();
}
int PanelFrameView::NonClientTopBorderHeight() const {
@@ -86,8 +87,8 @@ void PanelFrameView::Layout() {
if (!header_painter_)
return;
header_painter_->LayoutHeader();
- GetWidgetWindow()->aura_window()->SetProperty(aura::client::kTopViewInset,
- NonClientTopBorderHeight());
+ GetWidgetWindow()->SetProperty(aura::client::kTopViewInset,
+ NonClientTopBorderHeight());
}
void PanelFrameView::GetWindowMask(const gfx::Size&, gfx::Path*) {
« no previous file with comments | « ash/wm/panels/panel_frame_view.h ('k') | ash/wm/panels/panel_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698