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

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

Issue 218763002: Change AckEvent into request / response (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix early return Created 6 years, 8 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 | « no previous file | mojo/examples/aura_demo/window_tree_host_mojo.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 (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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; 53 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE;
54 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; 54 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
55 55
56 // ui::EventSource: 56 // ui::EventSource:
57 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; 57 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
58 58
59 // Overridden from NativeViewportClient: 59 // Overridden from NativeViewportClient:
60 virtual void OnCreated() OVERRIDE; 60 virtual void OnCreated() OVERRIDE;
61 virtual void OnDestroyed() OVERRIDE; 61 virtual void OnDestroyed() OVERRIDE;
62 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE; 62 virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE;
63 virtual void OnEvent(const Event& event) OVERRIDE; 63 virtual void OnEvent(const Event& event,
64 const mojo::Callback<void()>& callback) 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 | « no previous file | mojo/examples/aura_demo/window_tree_host_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698