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

Side by Side Diff: ash/shell.h

Issue 2336883002: mash: Port context menu code to WmShell and WmRootWindowController. (Closed)
Patch Set: Fix error. Created 4 years, 3 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/root_window_controller.cc ('k') | ash/shell.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 (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 #ifndef ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/common/shelf/shelf_types.h" 13 #include "ash/common/shelf/shelf_types.h"
14 #include "ash/metrics/user_metrics_recorder.h" 14 #include "ash/metrics/user_metrics_recorder.h"
15 #include "ash/wm/cursor_manager_chromeos.h" 15 #include "ash/wm/cursor_manager_chromeos.h"
16 #include "ash/wm/system_modal_container_event_filter_delegate.h" 16 #include "ash/wm/system_modal_container_event_filter_delegate.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "ui/aura/window.h" 21 #include "ui/aura/window.h"
22 #include "ui/base/ui_base_types.h"
23 #include "ui/display/screen.h" 22 #include "ui/display/screen.h"
24 #include "ui/events/event_target.h" 23 #include "ui/events/event_target.h"
25 #include "ui/gfx/geometry/insets.h" 24 #include "ui/gfx/geometry/insets.h"
26 #include "ui/gfx/geometry/size.h" 25 #include "ui/gfx/geometry/size.h"
27 #include "ui/wm/core/cursor_manager.h" 26 #include "ui/wm/core/cursor_manager.h"
28 27
29 namespace aura { 28 namespace aura {
30 class EventFilter; 29 class EventFilter;
31 class RootWindow; 30 class RootWindow;
32 class Window; 31 class Window;
33 namespace client { 32 namespace client {
34 class ActivationClient; 33 class ActivationClient;
35 class FocusClient; 34 class FocusClient;
36 } 35 }
37 } 36 }
38 37
39 namespace chromeos { 38 namespace chromeos {
40 class AudioA11yController; 39 class AudioA11yController;
41 } 40 }
42 41
43 namespace gfx { 42 namespace gfx {
44 class ImageSkia; 43 class ImageSkia;
45 class Point;
46 class Rect; 44 class Rect;
47 } 45 }
48 46
49 namespace ui { 47 namespace ui {
50 class DisplayConfigurator; 48 class DisplayConfigurator;
51 class Layer; 49 class Layer;
52 class UserActivityDetector; 50 class UserActivityDetector;
53 class UserActivityPowerManagerNotifier; 51 class UserActivityPowerManagerNotifier;
54 } 52 }
55 namespace views { 53 namespace views {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 static int64_t GetTargetDisplayId(); 183 static int64_t GetTargetDisplayId();
186 184
187 // Returns all root windows. 185 // Returns all root windows.
188 static aura::Window::Windows GetAllRootWindows(); 186 static aura::Window::Windows GetAllRootWindows();
189 187
190 static aura::Window* GetContainer(aura::Window* root_window, 188 static aura::Window* GetContainer(aura::Window* root_window,
191 int container_id); 189 int container_id);
192 static const aura::Window* GetContainer(const aura::Window* root_window, 190 static const aura::Window* GetContainer(const aura::Window* root_window,
193 int container_id); 191 int container_id);
194 192
195 // Shows the context menu for the wallpaper and shelf at the screen location.
196 void ShowContextMenu(const gfx::Point& location_in_screen,
197 ui::MenuSourceType source_type);
198
199 // Creates a default views::NonClientFrameView for use by windows in the 193 // Creates a default views::NonClientFrameView for use by windows in the
200 // Ash environment. 194 // Ash environment.
201 views::NonClientFrameView* CreateDefaultNonClientFrameView( 195 views::NonClientFrameView* CreateDefaultNonClientFrameView(
202 views::Widget* widget); 196 views::Widget* widget);
203 197
204 // Sets work area insets of the display containing |window|, pings observers. 198 // Sets work area insets of the display containing |window|, pings observers.
205 void SetDisplayWorkAreaInsets(aura::Window* window, 199 void SetDisplayWorkAreaInsets(aura::Window* window,
206 const gfx::Insets& insets); 200 const gfx::Insets& insets);
207 201
208 // Called when the user logs in. 202 // Called when the user logs in.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_; 561 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_;
568 562
569 bool in_mus_ = false; 563 bool in_mus_ = false;
570 564
571 DISALLOW_COPY_AND_ASSIGN(Shell); 565 DISALLOW_COPY_AND_ASSIGN(Shell);
572 }; 566 };
573 567
574 } // namespace ash 568 } // namespace ash
575 569
576 #endif // ASH_SHELL_H_ 570 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698