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

Side by Side Diff: ui/ozone/common/native_display_delegate_ozone.h

Issue 788423002: Add display task to trigger display configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor3
Patch Set: Remove include in favour of forward declare Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_ 5 #ifndef UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
6 #define UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_ 6 #define UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "ui/display/types/native_display_delegate.h" 10 #include "ui/display/types/native_display_delegate.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class NativeDisplayDelegateOzone : public NativeDisplayDelegate { 14 class NativeDisplayDelegateOzone : public NativeDisplayDelegate {
15 public: 15 public:
16 NativeDisplayDelegateOzone(); 16 NativeDisplayDelegateOzone();
17 ~NativeDisplayDelegateOzone() override; 17 ~NativeDisplayDelegateOzone() override;
18 18
19 // NativeDisplayDelegate overrides: 19 // NativeDisplayDelegate overrides:
20 void Initialize() override; 20 void Initialize() override;
21 void GrabServer() override; 21 void GrabServer() override;
22 void UngrabServer() override; 22 void UngrabServer() override;
23 bool TakeDisplayControl() override; 23 bool TakeDisplayControl() override;
24 bool RelinquishDisplayControl() override; 24 bool RelinquishDisplayControl() override;
25 void SyncWithServer() override; 25 void SyncWithServer() override;
26 void SetBackgroundColor(uint32_t color_argb) override; 26 void SetBackgroundColor(uint32_t color_argb) override;
27 void ForceDPMSOn() override; 27 void ForceDPMSOn() override;
28 std::vector<ui::DisplaySnapshot*> GetDisplays() override; 28 std::vector<ui::DisplaySnapshot*> GetDisplays() override;
29 void GetDisplays(const GetDisplaysCallback& callback) override;
29 void AddMode(const ui::DisplaySnapshot& output, 30 void AddMode(const ui::DisplaySnapshot& output,
30 const ui::DisplayMode* mode) override; 31 const ui::DisplayMode* mode) override;
31 bool Configure(const ui::DisplaySnapshot& output, 32 bool Configure(const ui::DisplaySnapshot& output,
32 const ui::DisplayMode* mode, 33 const ui::DisplayMode* mode,
33 const gfx::Point& origin) override; 34 const gfx::Point& origin) override;
34 void Configure(const ui::DisplaySnapshot& output, 35 void Configure(const ui::DisplaySnapshot& output,
35 const ui::DisplayMode* mode, 36 const ui::DisplayMode* mode,
36 const gfx::Point& origin, 37 const gfx::Point& origin,
37 const ConfigureCallback& callback) override; 38 const ConfigureCallback& callback) override;
38 void CreateFrameBuffer(const gfx::Size& size) override; 39 void CreateFrameBuffer(const gfx::Size& size) override;
(...skipping 11 matching lines...) Expand all
50 51
51 private: 52 private:
52 ScopedVector<DisplaySnapshot> displays_; 53 ScopedVector<DisplaySnapshot> displays_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzone); 55 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzone);
55 }; 56 };
56 57
57 } // namespace ui 58 } // namespace ui
58 59
59 #endif // UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_ 60 #endif // UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
OLDNEW
« no previous file with comments | « ui/display/types/native_display_delegate.h ('k') | ui/ozone/common/native_display_delegate_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698