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

Side by Side Diff: trunk/src/mojo/examples/aura_demo/window_tree_host_mojo.h

Issue 205313002: Revert 258077 "Remove PrepareForShutdown" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_
6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ 6 #define MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "mojo/public/bindings/remote_ptr.h" 9 #include "mojo/public/bindings/remote_ptr.h"
10 #include "mojo/services/native_viewport/native_viewport.mojom.h" 10 #include "mojo/services/native_viewport/native_viewport.mojom.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual gfx::Insets GetInsets() const OVERRIDE; 42 virtual gfx::Insets GetInsets() const OVERRIDE;
43 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; 43 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE;
44 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 44 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
45 virtual void SetCapture() OVERRIDE; 45 virtual void SetCapture() OVERRIDE;
46 virtual void ReleaseCapture() OVERRIDE; 46 virtual void ReleaseCapture() OVERRIDE;
47 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 47 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
48 virtual bool ConfineCursorToRootWindow() OVERRIDE; 48 virtual bool ConfineCursorToRootWindow() OVERRIDE;
49 virtual void UnConfineCursor() OVERRIDE; 49 virtual void UnConfineCursor() OVERRIDE;
50 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 50 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
51 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 51 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
52 virtual void PrepareForShutdown() OVERRIDE;
52 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; 53 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE;
53 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; 54 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE;
54 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; 55 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
55 56
56 // ui::EventSource: 57 // ui::EventSource:
57 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; 58 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
58 59
59 // Overridden from NativeViewportClient: 60 // Overridden from NativeViewportClient:
60 virtual void OnCreated() OVERRIDE; 61 virtual void OnCreated() OVERRIDE;
61 virtual void OnDestroyed() OVERRIDE; 62 virtual void OnDestroyed() OVERRIDE;
62 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE; 63 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE;
63 virtual void OnEvent(const Event& event) OVERRIDE; 64 virtual void OnEvent(const Event& event) OVERRIDE;
64 65
65 static ui::ContextFactory* context_factory_; 66 static ui::ContextFactory* context_factory_;
66 67
67 ScopedMessagePipeHandle gles2_handle_; 68 ScopedMessagePipeHandle gles2_handle_;
68 RemotePtr<NativeViewport> native_viewport_; 69 RemotePtr<NativeViewport> native_viewport_;
69 base::Callback<void()> compositor_created_callback_; 70 base::Callback<void()> compositor_created_callback_;
70 71
71 gfx::Rect bounds_; 72 gfx::Rect bounds_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo); 74 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo);
74 }; 75 };
75 76
76 } // namespace examples 77 } // namespace examples
77 } // namespace mojo 78 } // namespace mojo
78 79
79 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_ 80 #endif // MOJO_EXAMPLES_AURA_DEMO_WINDOW_TREE_HOST_MOJO_H_
OLDNEW
« no previous file with comments | « trunk/src/ash/root_window_settings.cc ('k') | trunk/src/mojo/examples/aura_demo/window_tree_host_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698