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

Side by Side Diff: components/mus/ws/platform_screen_impl_ozone.h

Issue 2081253002: Implement rudimentary touchscreen support in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing pure virtual. Created 4 years, 6 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 | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/platform_screen_impl_ozone.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 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 COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ 5 #ifndef COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_
6 #define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ 6 #define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // TODO(rjkroege): NativeDisplayObserver is misnamed as it tracks changes in 45 // TODO(rjkroege): NativeDisplayObserver is misnamed as it tracks changes in
46 // the physical "Screen". Consider renaming it to NativeScreenObserver. 46 // the physical "Screen". Consider renaming it to NativeScreenObserver.
47 // ui::NativeDisplayObserver: 47 // ui::NativeDisplayObserver:
48 void OnConfigurationChanged() override; 48 void OnConfigurationChanged() override;
49 49
50 // Display management callback. 50 // Display management callback.
51 void OnDisplaysAquired(const ConfiguredDisplayCallback& callback, 51 void OnDisplaysAquired(const ConfiguredDisplayCallback& callback,
52 const std::vector<ui::DisplaySnapshot*>& displays); 52 const std::vector<ui::DisplaySnapshot*>& displays);
53 53
54 // The display subsystem calls |OnDisplayConfigured| for each display that has
55 // been successfully configured. This in turn calls |callback_| with the
56 // identity and bounds of each physical display.
57 void OnDisplayConfigured(const ConfiguredDisplayCallback& callback,
58 int64_t id,
59 const gfx::Rect& bounds,
60 bool success);
61
54 std::unique_ptr<ui::NativeDisplayDelegate> native_display_delegate_; 62 std::unique_ptr<ui::NativeDisplayDelegate> native_display_delegate_;
55 63
56 base::WeakPtrFactory<PlatformScreenImplOzone> weak_ptr_factory_; 64 base::WeakPtrFactory<PlatformScreenImplOzone> weak_ptr_factory_;
57 65
58 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImplOzone); 66 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImplOzone);
59 }; 67 };
60 68
61 } // namespace ws 69 } // namespace ws
62 } // namespace mus 70 } // namespace mus
63 71
64 #endif // COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_ 72 #endif // COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_OZONE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/platform_screen_impl_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698