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

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

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 2 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 | « services/ui/ws/frame_generator.cc ('k') | services/ui/ws/platform_display.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 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 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_
6 #define SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ 6 #define SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "services/ui/ws/viewport_metrics.h" 9 #include "services/ui/display/viewport_metrics.h"
10 10
11 namespace ui { 11 namespace ui {
12 namespace ws { 12 namespace ws {
13 13
14 class ServerWindow; 14 class ServerWindow;
15 15
16 class FrameGeneratorDelegate { 16 class FrameGeneratorDelegate {
17 public: 17 public:
18 // Returns the root window of the display. 18 // Returns the root window of the display.
19 virtual ServerWindow* GetRootWindow() = 0; 19 virtual ServerWindow* GetRootWindow() = 0;
20 20
21 virtual bool IsInHighContrastMode() = 0; 21 virtual bool IsInHighContrastMode() = 0;
22 22
23 virtual const ViewportMetrics& GetViewportMetrics() = 0; 23 virtual const display::ViewportMetrics& GetViewportMetrics() const = 0;
24 24
25 protected: 25 protected:
26 virtual ~FrameGeneratorDelegate() {} 26 virtual ~FrameGeneratorDelegate() {}
27 }; 27 };
28 28
29 } // namespace ws 29 } // namespace ws
30 } // namespace ui 30 } // namespace ui
31 31
32 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ 32 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/frame_generator.cc ('k') | services/ui/ws/platform_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698