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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 public IPC::Listener { | 76 public IPC::Listener { |
77 public: | 77 public: |
78 ~RenderWidgetHostViewBase() override; | 78 ~RenderWidgetHostViewBase() override; |
79 | 79 |
80 float current_device_scale_factor() const { | 80 float current_device_scale_factor() const { |
81 return current_device_scale_factor_; | 81 return current_device_scale_factor_; |
82 } | 82 } |
83 | 83 |
84 // RenderWidgetHostView implementation. | 84 // RenderWidgetHostView implementation. |
85 void SetBackgroundColor(SkColor color) override; | 85 void SetBackgroundColor(SkColor color) override; |
| 86 SkColor background_color() override; |
86 void SetBackgroundColorToDefault() final; | 87 void SetBackgroundColorToDefault() final; |
87 bool GetBackgroundOpaque() override; | 88 bool GetBackgroundOpaque() override; |
88 ui::TextInputClient* GetTextInputClient() override; | 89 ui::TextInputClient* GetTextInputClient() override; |
89 void WasUnOccluded() override {} | 90 void WasUnOccluded() override {} |
90 void WasOccluded() override {} | 91 void WasOccluded() override {} |
91 bool IsShowingContextMenu() const override; | 92 bool IsShowingContextMenu() const override; |
92 void SetShowingContextMenu(bool showing_menu) override; | 93 void SetShowingContextMenu(bool showing_menu) override; |
93 base::string16 GetSelectedText() const override; | 94 base::string16 GetSelectedText() const override; |
94 bool IsMouseLocked() override; | 95 bool IsMouseLocked() override; |
95 gfx::Size GetVisibleViewportSize() const override; | 96 gfx::Size GetVisibleViewportSize() const override; |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 436 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
436 | 437 |
437 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 438 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
438 | 439 |
439 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
440 }; | 441 }; |
441 | 442 |
442 } // namespace content | 443 } // namespace content |
443 | 444 |
444 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |