| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
| 9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/callback_forward.h" | 16 #include "base/callback_forward.h" |
| 17 #include "base/process/kill.h" | 17 #include "base/process/kill.h" |
| 18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
| 19 #include "cc/output/compositor_frame.h" | 19 #include "cc/output/compositor_frame.h" |
| 20 #include "content/browser/renderer_host/event_with_latency_info.h" | 20 #include "content/browser/renderer_host/event_with_latency_info.h" |
| 21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 22 #include "content/common/input/input_event_ack_state.h" | 22 #include "content/common/input/input_event_ack_state.h" |
| 23 #include "content/common/readback_types.h" |
| 23 #include "content/public/browser/render_widget_host_view.h" | 24 #include "content/public/browser/render_widget_host_view.h" |
| 24 #include "ipc/ipc_listener.h" | 25 #include "ipc/ipc_listener.h" |
| 25 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 26 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
| 26 #include "third_party/WebKit/public/web/WebPopupType.h" | 27 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 27 #include "third_party/WebKit/public/web/WebTextDirection.h" | 28 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 28 #include "ui/base/ime/text_input_mode.h" | 29 #include "ui/base/ime/text_input_mode.h" |
| 29 #include "ui/base/ime/text_input_type.h" | 30 #include "ui/base/ime/text_input_type.h" |
| 30 #include "ui/gfx/display.h" | 31 #include "ui/gfx/display.h" |
| 31 #include "ui/gfx/native_widget_types.h" | 32 #include "ui/gfx/native_widget_types.h" |
| 32 #include "ui/gfx/range/range.h" | 33 #include "ui/gfx/range/range.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 52 namespace content { | 53 namespace content { |
| 53 class BrowserAccessibilityDelegate; | 54 class BrowserAccessibilityDelegate; |
| 54 class BrowserAccessibilityManager; | 55 class BrowserAccessibilityManager; |
| 55 class SyntheticGesture; | 56 class SyntheticGesture; |
| 56 class SyntheticGestureTarget; | 57 class SyntheticGestureTarget; |
| 57 class WebCursor; | 58 class WebCursor; |
| 58 struct DidOverscrollParams; | 59 struct DidOverscrollParams; |
| 59 struct NativeWebKeyboardEvent; | 60 struct NativeWebKeyboardEvent; |
| 60 struct WebPluginGeometry; | 61 struct WebPluginGeometry; |
| 61 | 62 |
| 62 // TODO(Sikugu): Though we have the return status of the result here, | |
| 63 // we should add the reason for failure as a new parameter to handle cases | |
| 64 // efficiently. | |
| 65 typedef const base::Callback<void(bool, const SkBitmap&)> | |
| 66 CopyFromCompositingSurfaceCallback; | |
| 67 | |
| 68 // Basic implementation shared by concrete RenderWidgetHostView subclasses. | 63 // Basic implementation shared by concrete RenderWidgetHostView subclasses. |
| 69 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | 64 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
| 70 public IPC::Listener { | 65 public IPC::Listener { |
| 71 public: | 66 public: |
| 72 virtual ~RenderWidgetHostViewBase(); | 67 virtual ~RenderWidgetHostViewBase(); |
| 73 | 68 |
| 74 // RenderWidgetHostView implementation. | 69 // RenderWidgetHostView implementation. |
| 75 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; | 70 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; |
| 76 virtual bool GetBackgroundOpaque() OVERRIDE; | 71 virtual bool GetBackgroundOpaque() OVERRIDE; |
| 77 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 72 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 435 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 441 | 436 |
| 442 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 437 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 443 | 438 |
| 444 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 439 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 445 }; | 440 }; |
| 446 | 441 |
| 447 } // namespace content | 442 } // namespace content |
| 448 | 443 |
| 449 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 444 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |