| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // entirely, which comes first. | 305 // entirely, which comes first. |
| 306 virtual bool IsRenderWidgetHostViewGuest(); | 306 virtual bool IsRenderWidgetHostViewGuest(); |
| 307 | 307 |
| 308 // Subclass identifier for RenderWidgetHostViewChildFrames. This is useful | 308 // Subclass identifier for RenderWidgetHostViewChildFrames. This is useful |
| 309 // to be able to know if this RWHV is embedded within another RWHV. If | 309 // to be able to know if this RWHV is embedded within another RWHV. If |
| 310 // other kinds of embeddable RWHVs are created, this should be renamed to | 310 // other kinds of embeddable RWHVs are created, this should be renamed to |
| 311 // a more generic term -- in which case, static casts to RWHVChildFrame will | 311 // a more generic term -- in which case, static casts to RWHVChildFrame will |
| 312 // need to also be resolved. | 312 // need to also be resolved. |
| 313 virtual bool IsRenderWidgetHostViewChildFrame(); | 313 virtual bool IsRenderWidgetHostViewChildFrame(); |
| 314 | 314 |
| 315 // Notify the View that a screen rect update is being sent to the |
| 316 // RenderWidget. Related platform-specific updates can be sent from here. |
| 317 virtual void WillSendScreenRects() {} |
| 318 |
| 315 // Returns true if the current view is in virtual reality mode. | 319 // Returns true if the current view is in virtual reality mode. |
| 316 virtual bool IsInVR() const; | 320 virtual bool IsInVR() const; |
| 317 | 321 |
| 318 //---------------------------------------------------------------------------- | 322 //---------------------------------------------------------------------------- |
| 319 // The following methods are related to IME. | 323 // The following methods are related to IME. |
| 320 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME | 324 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME |
| 321 // is implemented for OOPIF. After fixing IME, mark the corresponding methods | 325 // is implemented for OOPIF. After fixing IME, mark the corresponding methods |
| 322 // non-virtual (https://crbug.com/578168). | 326 // non-virtual (https://crbug.com/578168). |
| 323 | 327 |
| 324 // Updates the state of the input method attached to the view. | 328 // Updates the state of the input method attached to the view. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 481 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 478 | 482 |
| 479 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 483 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 480 | 484 |
| 481 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 485 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 482 }; | 486 }; |
| 483 | 487 |
| 484 } // namespace content | 488 } // namespace content |
| 485 | 489 |
| 486 #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 |