OLD | NEW |
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 "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/event_utils.h" | 8 #include "ui/events/event_utils.h" |
9 #include "ui/gfx/win/msg_util.h" | 9 #include "ui/gfx/win/msg_util.h" |
10 #include "ui/gfx/win/window_impl.h" | 10 #include "ui/gfx/win/window_impl.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } | 154 } |
155 } | 155 } |
156 | 156 |
157 NativeViewportDelegate* delegate_; | 157 NativeViewportDelegate* delegate_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(NativeViewportWin); | 159 DISALLOW_COPY_AND_ASSIGN(NativeViewportWin); |
160 }; | 160 }; |
161 | 161 |
162 // static | 162 // static |
163 scoped_ptr<NativeViewport> NativeViewport::Create( | 163 scoped_ptr<NativeViewport> NativeViewport::Create( |
164 shell::Context* context, | |
165 NativeViewportDelegate* delegate) { | 164 NativeViewportDelegate* delegate) { |
166 return scoped_ptr<NativeViewport>(new NativeViewportWin(delegate)).Pass(); | 165 return scoped_ptr<NativeViewport>(new NativeViewportWin(delegate)).Pass(); |
167 } | 166 } |
168 | 167 |
169 } // namespace services | 168 } // namespace services |
170 } // namespace mojo | 169 } // namespace mojo |
OLD | NEW |