OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/services/native_viewport/native_viewport.h" | 5 #include "mojo/services/native_viewport/native_viewport.h" |
6 | 6 |
7 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
8 #include "ui/events/platform/platform_event_dispatcher.h" | 8 #include "ui/events/platform/platform_event_dispatcher.h" |
9 #include "ui/events/platform/platform_event_source.h" | 9 #include "ui/events/platform/platform_event_source.h" |
10 #include "ui/ozone/public/cursor_factory_ozone.h" | 10 #include "ui/ozone/public/cursor_factory_ozone.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 virtual void OnWindowStateChanged(ui::PlatformWindowState state) OVERRIDE {} | 75 virtual void OnWindowStateChanged(ui::PlatformWindowState state) OVERRIDE {} |
76 | 76 |
77 virtual void OnLostCapture() OVERRIDE {} | 77 virtual void OnLostCapture() OVERRIDE {} |
78 | 78 |
79 virtual void OnAcceleratedWidgetAvailable( | 79 virtual void OnAcceleratedWidgetAvailable( |
80 gfx::AcceleratedWidget widget) OVERRIDE { | 80 gfx::AcceleratedWidget widget) OVERRIDE { |
81 delegate_->OnAcceleratedWidgetAvailable(widget); | 81 delegate_->OnAcceleratedWidgetAvailable(widget); |
82 } | 82 } |
83 | 83 |
| 84 virtual void OnActivationChanged(bool active) OVERRIDE {} |
| 85 |
84 scoped_ptr<ui::PlatformWindow> platform_window_; | 86 scoped_ptr<ui::PlatformWindow> platform_window_; |
85 NativeViewportDelegate* delegate_; | 87 NativeViewportDelegate* delegate_; |
86 | 88 |
87 DISALLOW_COPY_AND_ASSIGN(NativeViewportOzone); | 89 DISALLOW_COPY_AND_ASSIGN(NativeViewportOzone); |
88 }; | 90 }; |
89 | 91 |
90 // static | 92 // static |
91 scoped_ptr<NativeViewport> NativeViewport::Create( | 93 scoped_ptr<NativeViewport> NativeViewport::Create( |
92 NativeViewportDelegate* delegate) { | 94 NativeViewportDelegate* delegate) { |
93 return scoped_ptr<NativeViewport>(new NativeViewportOzone(delegate)).Pass(); | 95 return scoped_ptr<NativeViewport>(new NativeViewportOzone(delegate)).Pass(); |
94 } | 96 } |
95 | 97 |
96 } // namespace services | 98 } // namespace services |
97 } // namespace mojo | 99 } // namespace mojo |
OLD | NEW |