OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
| 13 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
14 #include "base/sequenced_task_runner_helpers.h" | 17 #include "base/sequenced_task_runner_helpers.h" |
15 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
16 #include "build/build_config.h" | 19 #include "build/build_config.h" |
17 #include "content/child/npapi/webplugin_delegate.h" | 20 #include "content/child/npapi/webplugin_delegate.h" |
18 #include "content/common/cursors/webcursor.h" | 21 #include "content/common/cursors/webcursor.h" |
19 #include "third_party/npapi/bindings/npapi.h" | 22 #include "third_party/npapi/bindings/npapi.h" |
20 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 bool windowless_; | 263 bool windowless_; |
261 | 264 |
262 WebPlugin* plugin_; | 265 WebPlugin* plugin_; |
263 scoped_refptr<PluginInstance> instance_; | 266 scoped_refptr<PluginInstance> instance_; |
264 | 267 |
265 #if defined(OS_WIN) | 268 #if defined(OS_WIN) |
266 // Original wndproc before we subclassed. | 269 // Original wndproc before we subclassed. |
267 WNDPROC plugin_wnd_proc_; | 270 WNDPROC plugin_wnd_proc_; |
268 | 271 |
269 // Used to throttle WM_USER+1 messages in Flash. | 272 // Used to throttle WM_USER+1 messages in Flash. |
270 uint32 last_message_; | 273 uint32_t last_message_; |
271 bool is_calling_wndproc; | 274 bool is_calling_wndproc; |
272 | 275 |
273 // An IME emulator used by a windowless plugin to retrieve IME data through | 276 // An IME emulator used by a windowless plugin to retrieve IME data through |
274 // IMM32 functions. | 277 // IMM32 functions. |
275 scoped_ptr<WebPluginIMEWin> plugin_ime_; | 278 scoped_ptr<WebPluginIMEWin> plugin_ime_; |
276 #endif // defined(OS_WIN) | 279 #endif // defined(OS_WIN) |
277 | 280 |
278 NPWindow window_; | 281 NPWindow window_; |
279 gfx::Rect window_rect_; | 282 gfx::Rect window_rect_; |
280 gfx::Rect clip_rect_; | 283 gfx::Rect clip_rect_; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // asynchronously. | 440 // asynchronously. |
438 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 441 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
439 #endif | 442 #endif |
440 | 443 |
441 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 444 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
442 }; | 445 }; |
443 | 446 |
444 } // namespace content | 447 } // namespace content |
445 | 448 |
446 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 449 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |