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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual bool IsRenderWidgetHostViewChildFrame(); |
289 | 289 |
| 290 // TODO(ekaramad): This is used for input event routing when the target of |
| 291 // events is a RenderWidgetHostViewGuest which is embeded in an OOPIF (the |
| 292 // only example right now is MimeHandlerViewGuest). Same as above, this |
| 293 // method should be removed when either direct routing is supported for |
| 294 // RWHVG or RWHVG is removed entirely (https://crbug.com/533069). |
| 295 virtual RenderWidgetHostViewBase* GetOuterView(); |
| 296 |
290 //---------------------------------------------------------------------------- | 297 //---------------------------------------------------------------------------- |
291 // The following methods are related to IME. | 298 // The following methods are related to IME. |
292 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME | 299 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME |
293 // is implemented for OOPIF. After fixing IME, mark the corresponding methods | 300 // is implemented for OOPIF. After fixing IME, mark the corresponding methods |
294 // non-virtual (https://crbug.com/578168). | 301 // non-virtual (https://crbug.com/578168). |
295 | 302 |
296 // Updates the state of the input method attached to the view. | 303 // Updates the state of the input method attached to the view. |
297 virtual void TextInputStateChanged(const TextInputState& text_input_state); | 304 virtual void TextInputStateChanged(const TextInputState& text_input_state); |
298 | 305 |
299 // Cancel the ongoing composition of the input method attached to the view. | 306 // Cancel the ongoing composition of the input method attached to the view. |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 507 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
501 | 508 |
502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 509 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
503 | 510 |
504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 511 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
505 }; | 512 }; |
506 | 513 |
507 } // namespace content | 514 } // namespace content |
508 | 515 |
509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 516 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |