OLD | NEW |
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 Loading... |
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 |
OLD | NEW |