| 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 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 namespace ui { | 61 namespace ui { |
| 62 class LatencyInfo; | 62 class LatencyInfo; |
| 63 } | 63 } |
| 64 | 64 |
| 65 namespace content { | 65 namespace content { |
| 66 class BrowserAccessibilityDelegate; | 66 class BrowserAccessibilityDelegate; |
| 67 class BrowserAccessibilityManager; | 67 class BrowserAccessibilityManager; |
| 68 class RenderWidgetHostViewBaseObserver; | 68 class RenderWidgetHostViewBaseObserver; |
| 69 class SyntheticGesture; | 69 class SyntheticGesture; |
| 70 class SyntheticGestureTarget; | 70 class SyntheticGestureTarget; |
| 71 class RenderWidgetHostImpl; |
| 71 class TextInputManager; | 72 class TextInputManager; |
| 72 class WebCursor; | 73 class WebCursor; |
| 73 struct DidOverscrollParams; | 74 struct DidOverscrollParams; |
| 74 struct NativeWebKeyboardEvent; | 75 struct NativeWebKeyboardEvent; |
| 75 struct TextInputState; | 76 struct TextInputState; |
| 76 | 77 |
| 77 // Basic implementation shared by concrete RenderWidgetHostView subclasses. | 78 // Basic implementation shared by concrete RenderWidgetHostView subclasses. |
| 78 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | 79 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
| 79 public IPC::Listener { | 80 public IPC::Listener { |
| 80 public: | 81 public: |
| 81 ~RenderWidgetHostViewBase() override; | 82 ~RenderWidgetHostViewBase() override; |
| 82 | 83 |
| 83 float current_device_scale_factor() const { | 84 float current_device_scale_factor() const { |
| 84 return current_device_scale_factor_; | 85 return current_device_scale_factor_; |
| 85 } | 86 } |
| 86 | 87 |
| 88 RenderWidgetHostImpl* GetFocusedWidget() const; |
| 89 |
| 87 // RenderWidgetHostView implementation. | 90 // RenderWidgetHostView implementation. |
| 91 RenderWidgetHost* GetRenderWidgetHost() const override; |
| 88 void SetBackgroundColor(SkColor color) override; | 92 void SetBackgroundColor(SkColor color) override; |
| 89 void SetBackgroundColorToDefault() final; | 93 void SetBackgroundColorToDefault() final; |
| 90 bool GetBackgroundOpaque() override; | 94 bool GetBackgroundOpaque() override; |
| 91 ui::TextInputClient* GetTextInputClient() override; | 95 ui::TextInputClient* GetTextInputClient() override; |
| 92 void WasUnOccluded() override {} | 96 void WasUnOccluded() override {} |
| 93 void WasOccluded() override {} | 97 void WasOccluded() override {} |
| 94 bool IsShowingContextMenu() const override; | 98 bool IsShowingContextMenu() const override; |
| 95 void SetShowingContextMenu(bool showing_menu) override; | 99 void SetShowingContextMenu(bool showing_menu) override; |
| 96 base::string16 GetSelectedText() override; | 100 base::string16 GetSelectedText() override; |
| 97 bool IsMouseLocked() override; | 101 bool IsMouseLocked() override; |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 476 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 473 | 477 |
| 474 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 478 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 475 | 479 |
| 476 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 480 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 477 }; | 481 }; |
| 478 | 482 |
| 479 } // namespace content | 483 } // namespace content |
| 480 | 484 |
| 481 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 485 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |