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

Side by Side Diff: ui/aura/window_tree_host_ozone.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 | « ui/aura/window_tree_host_ozone.h ('k') | ui/aura/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 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 #include "ui/aura/window_tree_host_ozone.h" 5 #include "ui/aura/window_tree_host_ozone.h"
6 6
7 #include "ui/aura/window_event_dispatcher.h" 7 #include "ui/aura/window_event_dispatcher.h"
8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h"
9 #include "ui/events/ozone/event_factory_ozone.h" 9 #include "ui/events/ozone/event_factory_ozone.h"
10 #include "ui/events/platform/platform_event_source.h" 10 #include "ui/events/platform/platform_event_source.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 return bounds_.Contains(static_cast<ui::LocatedEvent*>(event)->location()); 44 return bounds_.Contains(static_cast<ui::LocatedEvent*>(event)->location());
45 return true; 45 return true;
46 } 46 }
47 47
48 uint32_t WindowTreeHostOzone::DispatchEvent(const ui::PlatformEvent& ne) { 48 uint32_t WindowTreeHostOzone::DispatchEvent(const ui::PlatformEvent& ne) {
49 ui::Event* event = static_cast<ui::Event*>(ne); 49 ui::Event* event = static_cast<ui::Event*>(ne);
50 ui::EventDispatchDetails details ALLOW_UNUSED = SendEventToProcessor(event); 50 ui::EventDispatchDetails details ALLOW_UNUSED = SendEventToProcessor(event);
51 return ui::POST_DISPATCH_STOP_PROPAGATION; 51 return ui::POST_DISPATCH_STOP_PROPAGATION;
52 } 52 }
53 53
54 ui::EventSource* WindowTreeHostOzone::GetEventSource() {
55 return this;
56 }
57
54 gfx::AcceleratedWidget WindowTreeHostOzone::GetAcceleratedWidget() { 58 gfx::AcceleratedWidget WindowTreeHostOzone::GetAcceleratedWidget() {
55 return widget_; 59 return widget_;
56 } 60 }
57 61
58 void WindowTreeHostOzone::Show() { NOTIMPLEMENTED(); } 62 void WindowTreeHostOzone::Show() { NOTIMPLEMENTED(); }
59 63
60 void WindowTreeHostOzone::Hide() { NOTIMPLEMENTED(); } 64 void WindowTreeHostOzone::Hide() { NOTIMPLEMENTED(); }
61 65
62 gfx::Rect WindowTreeHostOzone::GetBounds() const { return bounds_; } 66 gfx::Rect WindowTreeHostOzone::GetBounds() const { return bounds_; }
63 67
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return new WindowTreeHostOzone(bounds); 121 return new WindowTreeHostOzone(bounds);
118 } 122 }
119 123
120 // static 124 // static
121 gfx::Size WindowTreeHost::GetNativeScreenSize() { 125 gfx::Size WindowTreeHost::GetNativeScreenSize() {
122 NOTIMPLEMENTED(); 126 NOTIMPLEMENTED();
123 return gfx::Size(); 127 return gfx::Size();
124 } 128 }
125 129
126 } // namespace aura 130 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_ozone.h ('k') | ui/aura/window_tree_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698