| 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 // A BrowserPluginGuest is the browser side of a browser <--> embedder | 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder |
| 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder | 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder |
| 7 // renderer side of browser <--> embedder renderer communication. | 7 // renderer side of browser <--> embedder renderer communication. |
| 8 // | 8 // |
| 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any | 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any |
| 10 // messages about the guest render process that the embedder might be interested | 10 // messages about the guest render process that the embedder might be interested |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #include <map> | 23 #include <map> |
| 24 #include <queue> | 24 #include <queue> |
| 25 | 25 |
| 26 #include "base/compiler_specific.h" | 26 #include "base/compiler_specific.h" |
| 27 #include "base/macros.h" | 27 #include "base/macros.h" |
| 28 #include "base/memory/linked_ptr.h" | 28 #include "base/memory/linked_ptr.h" |
| 29 #include "base/memory/weak_ptr.h" | 29 #include "base/memory/weak_ptr.h" |
| 30 #include "base/values.h" | 30 #include "base/values.h" |
| 31 #include "build/build_config.h" | 31 #include "build/build_config.h" |
| 32 #include "cc/surfaces/surface_id.h" |
| 32 #include "content/common/edit_command.h" | 33 #include "content/common/edit_command.h" |
| 33 #include "content/common/input/input_event_ack_state.h" | 34 #include "content/common/input/input_event_ack_state.h" |
| 34 #include "content/public/browser/browser_plugin_guest_delegate.h" | 35 #include "content/public/browser/browser_plugin_guest_delegate.h" |
| 35 #include "content/public/browser/guest_host.h" | 36 #include "content/public/browser/guest_host.h" |
| 36 #include "content/public/browser/readback_types.h" | 37 #include "content/public/browser/readback_types.h" |
| 37 #include "content/public/browser/web_contents_observer.h" | 38 #include "content/public/browser/web_contents_observer.h" |
| 38 #include "third_party/WebKit/public/platform/WebFocusType.h" | 39 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 39 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 40 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 40 #include "third_party/WebKit/public/web/WebDragOperation.h" | 41 #include "third_party/WebKit/public/web/WebDragOperation.h" |
| 41 #include "third_party/WebKit/public/web/WebDragStatus.h" | 42 #include "third_party/WebKit/public/web/WebDragStatus.h" |
| 42 #include "third_party/WebKit/public/web/WebInputEvent.h" | 43 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 43 #include "ui/base/ime/text_input_mode.h" | 44 #include "ui/base/ime/text_input_mode.h" |
| 44 #include "ui/base/ime/text_input_type.h" | 45 #include "ui/base/ime/text_input_type.h" |
| 45 #include "ui/gfx/geometry/rect.h" | 46 #include "ui/gfx/geometry/rect.h" |
| 46 | 47 |
| 47 struct BrowserPluginHostMsg_Attach_Params; | 48 struct BrowserPluginHostMsg_Attach_Params; |
| 48 struct ViewHostMsg_TextInputState_Params; | 49 struct ViewHostMsg_TextInputState_Params; |
| 49 | 50 |
| 50 #if defined(OS_MACOSX) | 51 #if defined(OS_MACOSX) |
| 51 struct FrameHostMsg_ShowPopup_Params; | 52 struct FrameHostMsg_ShowPopup_Params; |
| 52 #endif | 53 #endif |
| 53 | 54 |
| 54 namespace cc { | 55 namespace cc { |
| 55 class CompositorFrame; | 56 class CompositorFrame; |
| 56 struct SurfaceId; | |
| 57 struct SurfaceSequence; | 57 struct SurfaceSequence; |
| 58 } // namespace cc | 58 } // namespace cc |
| 59 | 59 |
| 60 namespace gfx { | 60 namespace gfx { |
| 61 class Range; | 61 class Range; |
| 62 } // namespace gfx | 62 } // namespace gfx |
| 63 | 63 |
| 64 namespace content { | 64 namespace content { |
| 65 | 65 |
| 66 class BrowserPluginGuestManager; | 66 class BrowserPluginGuestManager; |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 450 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 451 // permission. | 451 // permission. |
| 452 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 452 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 453 | 453 |
| 454 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 454 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 455 }; | 455 }; |
| 456 | 456 |
| 457 } // namespace content | 457 } // namespace content |
| 458 | 458 |
| 459 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 459 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |