| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 const gfx::Point& point, | 270 const gfx::Point& point, |
| 271 RenderWidgetHostViewBase* target_view); | 271 RenderWidgetHostViewBase* target_view); |
| 272 | 272 |
| 273 // TODO(kenrb, wjmaclean): This is a temporary subclass identifier for | 273 // TODO(kenrb, wjmaclean): This is a temporary subclass identifier for |
| 274 // RenderWidgetHostViewGuests that is needed for special treatment during | 274 // RenderWidgetHostViewGuests that is needed for special treatment during |
| 275 // input event routing. It can be removed either when RWHVGuests properly | 275 // input event routing. It can be removed either when RWHVGuests properly |
| 276 // support direct mouse event routing, or when RWHVGuest is removed | 276 // support direct mouse event routing, or when RWHVGuest is removed |
| 277 // entirely, which comes first. | 277 // entirely, which comes first. |
| 278 virtual bool IsRenderWidgetHostViewGuest(); | 278 virtual bool IsRenderWidgetHostViewGuest(); |
| 279 | 279 |
| 280 // Subclass identifier for RenderWidgetHostViewChildFrames. This is useful |
| 281 // to be able to know if this RWHV is embedded within another RWHV. If |
| 282 // other kinds of embeddable RWHVs are created, this should be renamed to |
| 283 // a more generic term -- in which case, static casts to RWHVChildFrame will |
| 284 // need to also be resolved. |
| 285 virtual bool IsRenderWidgetHostViewChildFrame(); |
| 286 |
| 280 //---------------------------------------------------------------------------- | 287 //---------------------------------------------------------------------------- |
| 281 // The following methods are related to IME. | 288 // The following methods are related to IME. |
| 282 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME | 289 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME |
| 283 // is implemented for OOPIF. After fixing IME, mark the corresponding methods | 290 // is implemented for OOPIF. After fixing IME, mark the corresponding methods |
| 284 // non-virtual (https://crbug.com/578168). | 291 // non-virtual (https://crbug.com/578168). |
| 285 | 292 |
| 286 // Updates the state of the input method attached to the view. | 293 // Updates the state of the input method attached to the view. |
| 287 virtual void TextInputStateChanged(const TextInputState& text_input_state); | 294 virtual void TextInputStateChanged(const TextInputState& text_input_state); |
| 288 | 295 |
| 289 // Cancel the ongoing composition of the input method attached to the view. | 296 // Cancel the ongoing composition of the input method attached to the view. |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 496 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 490 | 497 |
| 491 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 498 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 492 | 499 |
| 493 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 500 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 494 }; | 501 }; |
| 495 | 502 |
| 496 } // namespace content | 503 } // namespace content |
| 497 | 504 |
| 498 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 505 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |