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

Side by Side Diff: ash/frame/header_view.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
« no previous file with comments | « ash/frame/header_painter_util.cc ('k') | ash/high_contrast/high_contrast_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/frame/header_view.h" 5 #include "ash/frame/header_view.h"
6 6
7 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" 7 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h"
8 #include "ash/frame/default_header_painter.h" 8 #include "ash/frame/default_header_painter.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/wm_window.h"
11 #include "ui/views/controls/image_view.h" 10 #include "ui/views/controls/image_view.h"
12 #include "ui/views/widget/widget.h" 11 #include "ui/views/widget/widget.h"
13 12
14 namespace ash { 13 namespace ash {
15 14
16 HeaderView::HeaderView(views::Widget* target_widget, 15 HeaderView::HeaderView(views::Widget* target_widget,
17 mojom::WindowStyle window_style) 16 mojom::WindowStyle window_style)
18 : target_widget_(target_widget), 17 : target_widget_(target_widget),
19 header_painter_(base::MakeUnique<DefaultHeaderPainter>(window_style)), 18 header_painter_(base::MakeUnique<DefaultHeaderPainter>(window_style)),
20 avatar_icon_(nullptr), 19 avatar_icon_(nullptr),
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 gfx::Rect visible_bounds(GetVisibleBounds()); 186 gfx::Rect visible_bounds(GetVisibleBounds());
188 gfx::Point visible_origin_in_screen(visible_bounds.origin()); 187 gfx::Point visible_origin_in_screen(visible_bounds.origin());
189 views::View::ConvertPointToScreen(this, &visible_origin_in_screen); 188 views::View::ConvertPointToScreen(this, &visible_origin_in_screen);
190 std::vector<gfx::Rect> bounds_in_screen; 189 std::vector<gfx::Rect> bounds_in_screen;
191 bounds_in_screen.push_back( 190 bounds_in_screen.push_back(
192 gfx::Rect(visible_origin_in_screen, visible_bounds.size())); 191 gfx::Rect(visible_origin_in_screen, visible_bounds.size()));
193 return bounds_in_screen; 192 return bounds_in_screen;
194 } 193 }
195 194
196 } // namespace ash 195 } // namespace ash
OLDNEW
« no previous file with comments | « ash/frame/header_painter_util.cc ('k') | ash/high_contrast/high_contrast_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698