OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ash/shell/window_type_launcher.h" | 5 #include "ash/shell/window_type_launcher.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/session/session_state_delegate.h" | |
10 #include "ash/common/wm_shell.h" | |
11 #include "ash/content/shell_content_state.h" | 9 #include "ash/content/shell_content_state.h" |
12 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
13 #include "ash/root_window_controller.h" | 11 #include "ash/root_window_controller.h" |
| 12 #include "ash/session/session_state_delegate.h" |
14 #include "ash/shell.h" | 13 #include "ash/shell.h" |
15 #include "ash/shell/example_factory.h" | 14 #include "ash/shell/example_factory.h" |
16 #include "ash/shell/panel_window.h" | 15 #include "ash/shell/panel_window.h" |
17 #include "ash/shell/toplevel_window.h" | 16 #include "ash/shell/toplevel_window.h" |
18 #include "ash/system/status_area_widget.h" | 17 #include "ash/system/status_area_widget.h" |
19 #include "ash/system/web_notification/web_notification_tray.h" | 18 #include "ash/system/web_notification/web_notification_tray.h" |
20 #include "ash/test/child_modal_window.h" | 19 #include "ash/test/child_modal_window.h" |
| 20 #include "ash/wm_shell.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
23 #include "ui/aura/window_event_dispatcher.h" | 23 #include "ui/aura/window_event_dispatcher.h" |
24 #include "ui/compositor/layer.h" | 24 #include "ui/compositor/layer.h" |
25 #include "ui/gfx/canvas.h" | 25 #include "ui/gfx/canvas.h" |
26 #include "ui/message_center/message_center.h" | 26 #include "ui/message_center/message_center.h" |
27 #include "ui/message_center/notification_types.h" | 27 #include "ui/message_center/notification_types.h" |
28 #include "ui/views/controls/button/md_text_button.h" | 28 #include "ui/views/controls/button/md_text_button.h" |
29 #include "ui/views/controls/menu/menu_item_view.h" | 29 #include "ui/views/controls/menu/menu_item_view.h" |
30 #include "ui/views/controls/menu/menu_runner.h" | 30 #include "ui/views/controls/menu/menu_runner.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 views::MenuRunner::ASYNC)); | 336 views::MenuRunner::ASYNC)); |
337 if (menu_runner_->RunMenuAt(GetWidget(), NULL, gfx::Rect(point, gfx::Size()), | 337 if (menu_runner_->RunMenuAt(GetWidget(), NULL, gfx::Rect(point, gfx::Size()), |
338 views::MENU_ANCHOR_TOPLEFT, | 338 views::MENU_ANCHOR_TOPLEFT, |
339 source_type) == MenuRunner::MENU_DELETED) { | 339 source_type) == MenuRunner::MENU_DELETED) { |
340 return; | 340 return; |
341 } | 341 } |
342 } | 342 } |
343 | 343 |
344 } // namespace shell | 344 } // namespace shell |
345 } // namespace ash | 345 } // namespace ash |
OLD | NEW |