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

Side by Side Diff: ui/ozone/platform/dri/dri_window.h

Issue 611423002: [WIP][Ozone] Support external touchscreens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone-touchscreen
Patch Set: . Created 6 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 | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_window.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 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_PLATFORM_DRI_DRI_WINDOW_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/events/platform/platform_event_dispatcher.h" 9 #include "ui/events/platform/platform_event_dispatcher.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/ozone/platform/dri/channel_observer.h" 12 #include "ui/ozone/platform/dri/channel_observer.h"
13 #include "ui/ozone/platform/dri/touch_converter.h"
13 #include "ui/platform_window/platform_window.h" 14 #include "ui/platform_window/platform_window.h"
14 15
15 namespace ui { 16 namespace ui {
16 17
18 class DisplayManager;
17 class DriWindowDelegate; 19 class DriWindowDelegate;
18 class DriWindowManager; 20 class DriWindowManager;
19 class EventFactoryEvdev; 21 class EventFactoryEvdev;
20 class DriGpuPlatformSupportHost; 22 class DriGpuPlatformSupportHost;
21 23
22 class DriWindow : public PlatformWindow, 24 class DriWindow : public PlatformWindow,
23 public PlatformEventDispatcher, 25 public PlatformEventDispatcher,
24 public ChannelObserver { 26 public ChannelObserver {
25 public: 27 public:
26 DriWindow(PlatformWindowDelegate* delegate, 28 DriWindow(PlatformWindowDelegate* delegate,
27 const gfx::Rect& bounds, 29 const gfx::Rect& bounds,
28 DriGpuPlatformSupportHost* sender, 30 DriGpuPlatformSupportHost* sender,
29 EventFactoryEvdev* event_factory, 31 EventFactoryEvdev* event_factory,
30 DriWindowManager* window_manager); 32 DriWindowManager* window_manager,
33 DisplayManager* display_manager);
31 virtual ~DriWindow(); 34 virtual ~DriWindow();
32 35
33 void Initialize(); 36 void Initialize();
34 37
35 // PlatformWindow: 38 // PlatformWindow:
36 virtual void Show() override; 39 virtual void Show() override;
37 virtual void Hide() override; 40 virtual void Hide() override;
38 virtual void Close() override; 41 virtual void Close() override;
39 virtual void SetBounds(const gfx::Rect& bounds) override; 42 virtual void SetBounds(const gfx::Rect& bounds) override;
40 virtual gfx::Rect GetBounds() override; 43 virtual gfx::Rect GetBounds() override;
(...skipping 16 matching lines...) Expand all
57 60
58 private: 61 private:
59 PlatformWindowDelegate* delegate_; // Not owned. 62 PlatformWindowDelegate* delegate_; // Not owned.
60 DriGpuPlatformSupportHost* sender_; // Not owned. 63 DriGpuPlatformSupportHost* sender_; // Not owned.
61 EventFactoryEvdev* event_factory_; // Not owned. 64 EventFactoryEvdev* event_factory_; // Not owned.
62 DriWindowManager* window_manager_; // Not owned. 65 DriWindowManager* window_manager_; // Not owned.
63 66
64 gfx::Rect bounds_; 67 gfx::Rect bounds_;
65 gfx::AcceleratedWidget widget_; 68 gfx::AcceleratedWidget widget_;
66 69
70 // Transforms touch events into the window coordinate system.
71 TouchConverter touch_converter_;
72
67 DISALLOW_COPY_AND_ASSIGN(DriWindow); 73 DISALLOW_COPY_AND_ASSIGN(DriWindow);
68 }; 74 };
69 75
70 } // namespace ui 76 } // namespace ui
71 77
72 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ 78 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698