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

Side by Side Diff: services/ui/ws/platform_display_delegate.h

Issue 2445873003: Pass root ServerWindow id to FrameGenerator. (Closed)
Patch Set: Address nits. Created 4 years, 1 month 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 | « services/ui/ws/platform_display.cc ('k') | services/ui/ws/platform_display_init_params.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
7 7
8 namespace gfx { 8 namespace gfx {
9 class Size; 9 class Size;
10 } 10 }
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class Event; 14 class Event;
15 15
16 namespace ws { 16 namespace ws {
17 17
18 class ServerWindow; 18 class ServerWindow;
19 19
20 // PlatformDisplayDelegate is implemented by an object that manages the 20 // PlatformDisplayDelegate is implemented by an object that manages the
21 // lifetime of a PlatformDisplay, forwards events to the appropriate windows, 21 // lifetime of a PlatformDisplay, forwards events to the appropriate windows,
22 /// and responses to changes in viewport size. 22 /// and responses to changes in viewport size.
23 class PlatformDisplayDelegate { 23 class PlatformDisplayDelegate {
24 public: 24 public:
25 // Creates the root window for this display. The new root window will have
26 // |size| in DIP initially.
27 virtual void CreateRootWindow(const gfx::Size& size) = 0;
28
29 // Returns the root window of this display. 25 // Returns the root window of this display.
30 virtual ServerWindow* GetRootWindow() = 0; 26 virtual ServerWindow* GetRootWindow() = 0;
31 27
32 virtual bool IsInHighContrastMode() = 0; 28 virtual bool IsInHighContrastMode() = 0;
33 29
34 // Called when an event arrives. 30 // Called when an event arrives.
35 virtual void OnEvent(const ui::Event& event) = 0; 31 virtual void OnEvent(const ui::Event& event) = 0;
36 32
37 // Called when the Display loses capture. 33 // Called when the Display loses capture.
38 virtual void OnNativeCaptureLost() = 0; 34 virtual void OnNativeCaptureLost() = 0;
39 35
40 protected: 36 protected:
41 virtual ~PlatformDisplayDelegate() {} 37 virtual ~PlatformDisplayDelegate() {}
42 }; 38 };
43 39
44 } // namespace ws 40 } // namespace ws
45 41
46 } // namespace ui 42 } // namespace ui
47 43
48 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 44 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display.cc ('k') | services/ui/ws/platform_display_init_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698