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

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

Issue 240333007: wip: Second crack at implementing the touch exploration mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a flag to disable the touch exploration mode. Created 6 years, 7 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 | « mojo/examples/aura_demo/window_tree_host_mojo.h ('k') | ui/aura/remote_window_tree_host_win.h » ('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 #include "mojo/examples/aura_demo/window_tree_host_mojo.h" 5 #include "mojo/examples/aura_demo/window_tree_host_mojo.h"
6 6
7 #include "mojo/examples/aura_demo/demo_context_factory.h" 7 #include "mojo/examples/aura_demo/demo_context_factory.h"
8 #include "mojo/public/c/gles2/gles2.h" 8 #include "mojo/public/c/gles2/gles2.h"
9 #include "mojo/public/cpp/bindings/allocation_scope.h" 9 #include "mojo/public/cpp/bindings/allocation_scope.h"
10 #include "mojo/services/native_viewport/geometry_conversions.h" 10 #include "mojo/services/native_viewport/geometry_conversions.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 CHECK(context_factory_) << "No GL bindings."; 49 CHECK(context_factory_) << "No GL bindings.";
50 50
51 native_viewport_->CreateGLES2Context(gles2_client_handle.Pass()); 51 native_viewport_->CreateGLES2Context(gles2_client_handle.Pass());
52 } 52 }
53 53
54 WindowTreeHostMojo::~WindowTreeHostMojo() {} 54 WindowTreeHostMojo::~WindowTreeHostMojo() {}
55 55
56 //////////////////////////////////////////////////////////////////////////////// 56 ////////////////////////////////////////////////////////////////////////////////
57 // WindowTreeHostMojo, aura::WindowTreeHost implementation: 57 // WindowTreeHostMojo, aura::WindowTreeHost implementation:
58 58
59 ui::EventSource* WindowTreeHostMojo::GetEventSource() {
60 return this;
61 }
62
59 gfx::AcceleratedWidget WindowTreeHostMojo::GetAcceleratedWidget() { 63 gfx::AcceleratedWidget WindowTreeHostMojo::GetAcceleratedWidget() {
60 NOTIMPLEMENTED() << "GetAcceleratedWidget"; 64 NOTIMPLEMENTED() << "GetAcceleratedWidget";
61 return gfx::kNullAcceleratedWidget; 65 return gfx::kNullAcceleratedWidget;
62 } 66 }
63 67
64 void WindowTreeHostMojo::Show() { 68 void WindowTreeHostMojo::Show() {
65 window()->Show(); 69 window()->Show();
66 native_viewport_->Show(); 70 native_viewport_->Show();
67 } 71 }
68 72
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 SendEventToProcessor(&ev); 172 SendEventToProcessor(&ev);
169 break; 173 break;
170 } 174 }
171 // TODO(beng): touch, etc. 175 // TODO(beng): touch, etc.
172 } 176 }
173 callback.Run(); 177 callback.Run();
174 }; 178 };
175 179
176 } // namespace examples 180 } // namespace examples
177 } // namespace mojo 181 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/aura_demo/window_tree_host_mojo.h ('k') | ui/aura/remote_window_tree_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698