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

Side by Side Diff: ui/aura/window_tree_host_ozone.h

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/window_tree_host_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_AURA_WINDOW_TREE_HOST_OZONE_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_OZONE_H_
6 #define UI_AURA_WINDOW_TREE_HOST_OZONE_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_OZONE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/events/event_source.h" 10 #include "ui/events/event_source.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 #include "ui/platform_window/platform_window_delegate.h" 12 #include "ui/platform_window/types/platform_window_delegate.h"
13 13
14 namespace ui { 14 namespace ui {
15 class PlatformWindow; 15 class PlatformWindow;
16 } 16 }
17 17
18 namespace aura { 18 namespace aura {
19 19
20 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, 20 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost,
21 public ui::EventSource, 21 public ui::EventSource,
22 public ui::PlatformWindowDelegate { 22 public ui::PlatformWindowDelegate {
(...skipping 25 matching lines...) Expand all
48 virtual void SetCapture() OVERRIDE; 48 virtual void SetCapture() OVERRIDE;
49 virtual void ReleaseCapture() OVERRIDE; 49 virtual void ReleaseCapture() OVERRIDE;
50 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; 50 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE;
51 virtual void SetCursorNative(gfx::NativeCursor cursor_type) OVERRIDE; 51 virtual void SetCursorNative(gfx::NativeCursor cursor_type) OVERRIDE;
52 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; 52 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE;
53 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; 53 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
54 54
55 // ui::EventSource overrides. 55 // ui::EventSource overrides.
56 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; 56 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
57 57
58 // The identifier used to create a compositing surface.
59 gfx::AcceleratedWidget widget_;
60
58 // Platform-specific part of this WindowTreeHost. 61 // Platform-specific part of this WindowTreeHost.
59 scoped_ptr<ui::PlatformWindow> platform_window_; 62 scoped_ptr<ui::PlatformWindow> platform_window_;
60 63
61 // The identifier used to create a compositing surface.
62 gfx::AcceleratedWidget widget_;
63
64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); 64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone);
65 }; 65 };
66 66
67 } // namespace aura 67 } // namespace aura
68 68
69 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ 69 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/window_tree_host_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698