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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 scoped_ptr<ui::PlatformWindow> platform_window_; | 84 scoped_ptr<ui::PlatformWindow> platform_window_; |
85 NativeViewportDelegate* delegate_; | 85 NativeViewportDelegate* delegate_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(NativeViewportOzone); | 87 DISALLOW_COPY_AND_ASSIGN(NativeViewportOzone); |
88 }; | 88 }; |
89 | 89 |
90 // static | 90 // static |
91 scoped_ptr<NativeViewport> NativeViewport::Create( | 91 scoped_ptr<NativeViewport> NativeViewport::Create( |
92 shell::Context* context, | |
93 NativeViewportDelegate* delegate) { | 92 NativeViewportDelegate* delegate) { |
94 return scoped_ptr<NativeViewport>(new NativeViewportOzone(delegate)).Pass(); | 93 return scoped_ptr<NativeViewport>(new NativeViewportOzone(delegate)).Pass(); |
95 } | 94 } |
96 | 95 |
97 } // namespace services | 96 } // namespace services |
98 } // namespace mojo | 97 } // namespace mojo |
OLD | NEW |