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

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h" 5 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/ash_layout_constants.h" 9 #include "ash/ash_layout_constants.h"
10 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" 10 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h"
11 #include "ash/frame/default_header_painter.h" 11 #include "ash/frame/default_header_painter.h"
12 #include "ash/frame/frame_border_hit_test.h" 12 #include "ash/frame/frame_border_hit_test.h"
13 #include "ash/frame/header_painter_util.h" 13 #include "ash/frame/header_painter_util.h"
14 #include "ash/shell.h" 14 #include "ash/shell.h"
15 #include "ash/wm_window.h" 15 #include "ash/wm/window_util.h"
16 #include "base/feature_list.h" 16 #include "base/feature_list.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "chrome/browser/profiles/profiles_state.h" 18 #include "chrome/browser/profiles/profiles_state.h"
19 #include "chrome/browser/themes/theme_properties.h" 19 #include "chrome/browser/themes/theme_properties.h"
20 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" 20 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
21 #include "chrome/browser/ui/browser.h" 21 #include "chrome/browser/ui/browser.h"
22 #include "chrome/browser/ui/layout_constants.h" 22 #include "chrome/browser/ui/layout_constants.h"
23 #include "chrome/browser/ui/views/frame/browser_frame.h" 23 #include "chrome/browser/ui/views/frame/browser_frame.h"
24 #include "chrome/browser/ui/views/frame/browser_header_painter_ash.h" 24 #include "chrome/browser/ui/views/frame/browser_header_painter_ash.h"
25 #include "chrome/browser/ui/views/frame/browser_view.h" 25 #include "chrome/browser/ui/views/frame/browser_view.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 /////////////////////////////////////////////////////////////////////////////// 69 ///////////////////////////////////////////////////////////////////////////////
70 // BrowserNonClientFrameViewAsh, public: 70 // BrowserNonClientFrameViewAsh, public:
71 71
72 BrowserNonClientFrameViewAsh::BrowserNonClientFrameViewAsh( 72 BrowserNonClientFrameViewAsh::BrowserNonClientFrameViewAsh(
73 BrowserFrame* frame, 73 BrowserFrame* frame,
74 BrowserView* browser_view) 74 BrowserView* browser_view)
75 : BrowserNonClientFrameView(frame, browser_view), 75 : BrowserNonClientFrameView(frame, browser_view),
76 caption_button_container_(nullptr), 76 caption_button_container_(nullptr),
77 window_icon_(nullptr) { 77 window_icon_(nullptr) {
78 ash::WmWindow::Get(frame->GetNativeWindow()) 78 ash::wm::InstallResizeHandleWindowTargeterForWindow(frame->GetNativeWindow(),
79 ->InstallResizeHandleWindowTargeter(nullptr); 79 nullptr);
80 ash::Shell::Get()->AddShellObserver(this); 80 ash::Shell::Get()->AddShellObserver(this);
81 } 81 }
82 82
83 BrowserNonClientFrameViewAsh::~BrowserNonClientFrameViewAsh() { 83 BrowserNonClientFrameViewAsh::~BrowserNonClientFrameViewAsh() {
84 ash::Shell::Get()->RemoveShellObserver(this); 84 ash::Shell::Get()->RemoveShellObserver(this);
85 } 85 }
86 86
87 void BrowserNonClientFrameViewAsh::Init() { 87 void BrowserNonClientFrameViewAsh::Init() {
88 caption_button_container_ = new ash::FrameCaptionButtonContainerView(frame()); 88 caption_button_container_ = new ash::FrameCaptionButtonContainerView(frame());
89 caption_button_container_->UpdateSizeButtonVisibility(); 89 caption_button_container_->UpdateSizeButtonVisibility();
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 toolbar_bounds.width(), 0); 452 toolbar_bounds.width(), 0);
453 BrowserView::Paint1pxHorizontalLine(canvas, GetToolbarTopSeparatorColor(), 453 BrowserView::Paint1pxHorizontalLine(canvas, GetToolbarTopSeparatorColor(),
454 separator_rect, true); 454 separator_rect, true);
455 455
456 // Toolbar/content separator. 456 // Toolbar/content separator.
457 toolbar_bounds.Inset(kClientEdgeThickness, 0); 457 toolbar_bounds.Inset(kClientEdgeThickness, 0);
458 BrowserView::Paint1pxHorizontalLine( 458 BrowserView::Paint1pxHorizontalLine(
459 canvas, tp->GetColor(ThemeProperties::COLOR_TOOLBAR_BOTTOM_SEPARATOR), 459 canvas, tp->GetColor(ThemeProperties::COLOR_TOOLBAR_BOTTOM_SEPARATOR),
460 toolbar_bounds, true); 460 toolbar_bounds, true);
461 } 461 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc ('k') | chrome/browser/ui/window_sizer/window_sizer_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698