OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/first_run/first_run_helper_impl.h" | 5 #include "ash/first_run/first_run_helper_impl.h" |
6 | 6 |
7 #include "ash/common/shelf/app_list_button.h" | 7 #include "ash/common/shelf/app_list_button.h" |
8 #include "ash/common/shelf/shelf_widget.h" | 8 #include "ash/common/shelf/shelf_widget.h" |
9 #include "ash/common/shelf/wm_shelf.h" | 9 #include "ash/common/shelf/wm_shelf.h" |
10 #include "ash/common/system/tray/system_tray.h" | |
11 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
12 #include "ash/common/wm_window.h" | 11 #include "ash/common/wm_window.h" |
13 #include "ash/public/cpp/shell_window_ids.h" | 12 #include "ash/public/cpp/shell_window_ids.h" |
14 #include "ash/shell.h" | 13 #include "ash/shell.h" |
| 14 #include "ash/system/tray/system_tray.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "ui/app_list/views/app_list_view.h" | 16 #include "ui/app_list/views/app_list_view.h" |
17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
18 #include "ui/display/display.h" | 18 #include "ui/display/display.h" |
19 #include "ui/display/screen.h" | 19 #include "ui/display/screen.h" |
20 #include "ui/gfx/geometry/rect.h" | 20 #include "ui/gfx/geometry/rect.h" |
21 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
22 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 return bubble->GetBoundsInScreen(); | 96 return bubble->GetBoundsInScreen(); |
97 } | 97 } |
98 | 98 |
99 gfx::Rect FirstRunHelperImpl::GetHelpButtonBounds() { | 99 gfx::Rect FirstRunHelperImpl::GetHelpButtonBounds() { |
100 SystemTray* tray = Shell::GetInstance()->GetPrimarySystemTray(); | 100 SystemTray* tray = Shell::GetInstance()->GetPrimarySystemTray(); |
101 views::View* help_button = tray->GetHelpButtonView(); | 101 views::View* help_button = tray->GetHelpButtonView(); |
102 return help_button->GetBoundsInScreen(); | 102 return help_button->GetBoundsInScreen(); |
103 } | 103 } |
104 | 104 |
105 } // namespace ash | 105 } // namespace ash |
OLD | NEW |