| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void SetBackgroundColor(SkColor color) override; | 91 void SetBackgroundColor(SkColor color) override; |
| 92 SkColor background_color() override; | 92 SkColor background_color() override; |
| 93 void SetBackgroundColorToDefault() final; | 93 void SetBackgroundColorToDefault() final; |
| 94 bool GetBackgroundOpaque() override; | 94 bool GetBackgroundOpaque() override; |
| 95 ui::TextInputClient* GetTextInputClient() override; | 95 ui::TextInputClient* GetTextInputClient() override; |
| 96 void WasUnOccluded() override {} | 96 void WasUnOccluded() override {} |
| 97 void WasOccluded() override {} | 97 void WasOccluded() override {} |
| 98 bool IsShowingContextMenu() const override; | 98 bool IsShowingContextMenu() const override; |
| 99 void SetShowingContextMenu(bool showing_menu) override; | 99 void SetShowingContextMenu(bool showing_menu) override; |
| 100 void SetIsInVR(bool is_in_vr) override; | 100 void SetIsInVR(bool is_in_vr) override; |
| 101 bool IsInVR() const 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; |
| 104 void SetInsets(const gfx::Insets& insets) override; | 105 void SetInsets(const gfx::Insets& insets) override; |
| 105 void BeginFrameSubscription( | 106 void BeginFrameSubscription( |
| 106 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 107 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 107 void EndFrameSubscription() override; | 108 void EndFrameSubscription() override; |
| 108 void FocusedNodeTouched(const gfx::Point& location_dips_screen, | 109 void FocusedNodeTouched(const gfx::Point& location_dips_screen, |
| 109 bool editable) override; | 110 bool editable) override; |
| 110 | 111 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // entirely, which comes first. | 281 // entirely, which comes first. |
| 281 virtual bool IsRenderWidgetHostViewGuest(); | 282 virtual bool IsRenderWidgetHostViewGuest(); |
| 282 | 283 |
| 283 // Subclass identifier for RenderWidgetHostViewChildFrames. This is useful | 284 // Subclass identifier for RenderWidgetHostViewChildFrames. This is useful |
| 284 // to be able to know if this RWHV is embedded within another RWHV. If | 285 // to be able to know if this RWHV is embedded within another RWHV. If |
| 285 // other kinds of embeddable RWHVs are created, this should be renamed to | 286 // other kinds of embeddable RWHVs are created, this should be renamed to |
| 286 // a more generic term -- in which case, static casts to RWHVChildFrame will | 287 // a more generic term -- in which case, static casts to RWHVChildFrame will |
| 287 // need to also be resolved. | 288 // need to also be resolved. |
| 288 virtual bool IsRenderWidgetHostViewChildFrame(); | 289 virtual bool IsRenderWidgetHostViewChildFrame(); |
| 289 | 290 |
| 290 // Returns true if the current view is in virtual reality mode. | |
| 291 virtual bool IsInVR() const; | |
| 292 | |
| 293 //---------------------------------------------------------------------------- | 291 //---------------------------------------------------------------------------- |
| 294 // The following methods are related to IME. | 292 // The following methods are related to IME. |
| 295 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME | 293 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME |
| 296 // is implemented for OOPIF. After fixing IME, mark the corresponding methods | 294 // is implemented for OOPIF. After fixing IME, mark the corresponding methods |
| 297 // non-virtual (https://crbug.com/578168). | 295 // non-virtual (https://crbug.com/578168). |
| 298 | 296 |
| 299 // Updates the state of the input method attached to the view. | 297 // Updates the state of the input method attached to the view. |
| 300 virtual void TextInputStateChanged(const TextInputState& text_input_state); | 298 virtual void TextInputStateChanged(const TextInputState& text_input_state); |
| 301 | 299 |
| 302 // Cancel the ongoing composition of the input method attached to the view. | 300 // Cancel the ongoing composition of the input method attached to the view. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 481 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 484 | 482 |
| 485 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 483 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 486 | 484 |
| 487 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 485 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 488 }; | 486 }; |
| 489 | 487 |
| 490 } // namespace content | 488 } // namespace content |
| 491 | 489 |
| 492 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 490 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |