| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // input event routing. It can be removed either when RWHVGuests properly | 278 // input event routing. It can be removed either when RWHVGuests properly |
| 279 // support direct mouse event routing, or when RWHVGuest is removed | 279 // support direct mouse event routing, or when RWHVGuest is removed |
| 280 // entirely, which comes first. | 280 // entirely, which comes first. |
| 281 virtual bool IsRenderWidgetHostViewGuest(); | 281 virtual bool IsRenderWidgetHostViewGuest(); |
| 282 | 282 |
| 283 // Subclass identifier for RenderWidgetHostViewChildFrames. This is useful | 283 // Subclass identifier for RenderWidgetHostViewChildFrames. This is useful |
| 284 // to be able to know if this RWHV is embedded within another RWHV. If | 284 // 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 | 285 // 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 | 286 // a more generic term -- in which case, static casts to RWHVChildFrame will |
| 287 // need to also be resolved. | 287 // need to also be resolved. |
| 288 virtual bool IsRenderWidgetHostViewChildFrame(); | 288 bool IsRenderWidgetHostViewChildFrame() override; |
| 289 | 289 |
| 290 // Returns true if the current view is in virtual reality mode. | 290 // Returns true if the current view is in virtual reality mode. |
| 291 virtual bool IsInVR() const; | 291 virtual bool IsInVR() const; |
| 292 | 292 |
| 293 //---------------------------------------------------------------------------- | 293 //---------------------------------------------------------------------------- |
| 294 // The following methods are related to IME. | 294 // The following methods are related to IME. |
| 295 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME | 295 // 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 | 296 // is implemented for OOPIF. After fixing IME, mark the corresponding methods |
| 297 // non-virtual (https://crbug.com/578168). | 297 // non-virtual (https://crbug.com/578168). |
| 298 | 298 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 483 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 484 | 484 |
| 485 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 485 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 486 | 486 |
| 487 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 487 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 488 }; | 488 }; |
| 489 | 489 |
| 490 } // namespace content | 490 } // namespace content |
| 491 | 491 |
| 492 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 492 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |