| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 float current_device_scale_factor() const { | 84 float current_device_scale_factor() const { |
| 85 return current_device_scale_factor_; | 85 return current_device_scale_factor_; |
| 86 } | 86 } |
| 87 | 87 |
| 88 // Returns the focused RenderWidgetHost inside this |view|'s RWH. | 88 // Returns the focused RenderWidgetHost inside this |view|'s RWH. |
| 89 RenderWidgetHostImpl* GetFocusedWidget() const; | 89 RenderWidgetHostImpl* GetFocusedWidget() const; |
| 90 | 90 |
| 91 // RenderWidgetHostView implementation. | 91 // RenderWidgetHostView implementation. |
| 92 RenderWidgetHost* GetRenderWidgetHost() const override; | 92 RenderWidgetHost* GetRenderWidgetHost() const override; |
| 93 void SetBackgroundColor(SkColor color) override; | 93 void SetBackgroundColor(SkColor color) override; |
| 94 SkColor background_color() override; |
| 94 void SetBackgroundColorToDefault() final; | 95 void SetBackgroundColorToDefault() final; |
| 95 bool GetBackgroundOpaque() override; | 96 bool GetBackgroundOpaque() override; |
| 96 ui::TextInputClient* GetTextInputClient() override; | 97 ui::TextInputClient* GetTextInputClient() override; |
| 97 void WasUnOccluded() override {} | 98 void WasUnOccluded() override {} |
| 98 void WasOccluded() override {} | 99 void WasOccluded() override {} |
| 99 bool IsShowingContextMenu() const override; | 100 bool IsShowingContextMenu() const override; |
| 100 void SetShowingContextMenu(bool showing_menu) override; | 101 void SetShowingContextMenu(bool showing_menu) override; |
| 101 base::string16 GetSelectedText() override; | 102 base::string16 GetSelectedText() override; |
| 102 bool IsMouseLocked() override; | 103 bool IsMouseLocked() override; |
| 103 gfx::Size GetVisibleViewportSize() const override; | 104 gfx::Size GetVisibleViewportSize() const override; |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 501 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 501 | 502 |
| 502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 503 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 503 | 504 |
| 504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 505 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 505 }; | 506 }; |
| 506 | 507 |
| 507 } // namespace content | 508 } // namespace content |
| 508 | 509 |
| 509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 510 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |