| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 virtual void TransformPointToLocalCoordSpace(const gfx::Point& point, | 250 virtual void TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 251 cc::SurfaceId original_surface, | 251 cc::SurfaceId original_surface, |
| 252 gfx::Point* transformed_point); | 252 gfx::Point* transformed_point); |
| 253 | 253 |
| 254 // Updates the state of the input method attached to the view. | 254 // Updates the state of the input method attached to the view. |
| 255 // TODO(ekaramad): This method will not stay virtual. It will be moved up top | 255 // TODO(ekaramad): This method will not stay virtual. It will be moved up top |
| 256 // with the other non-virtual methods after TextInputState tracking is fixed | 256 // with the other non-virtual methods after TextInputState tracking is fixed |
| 257 // on all platforms (https://crbug.com/578168). | 257 // on all platforms (https://crbug.com/578168). |
| 258 virtual void TextInputStateChanged(const TextInputState& text_input_state); | 258 virtual void TextInputStateChanged(const TextInputState& text_input_state); |
| 259 | 259 |
| 260 // Cancel the ongoing composition of the input method attached to the view. |
| 261 virtual void ImeCancelComposition(); |
| 262 |
| 260 //---------------------------------------------------------------------------- | 263 //---------------------------------------------------------------------------- |
| 261 // The following static methods are implemented by each platform. | 264 // The following static methods are implemented by each platform. |
| 262 | 265 |
| 263 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); | 266 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); |
| 264 | 267 |
| 265 //---------------------------------------------------------------------------- | 268 //---------------------------------------------------------------------------- |
| 266 // The following pure virtual methods are implemented by derived classes. | 269 // The following pure virtual methods are implemented by derived classes. |
| 267 | 270 |
| 268 // Perform all the initialization steps necessary for this object to represent | 271 // Perform all the initialization steps necessary for this object to represent |
| 269 // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 272 // a popup (such as a <select> dropdown), then shows the popup at |pos|. |
| 270 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 273 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 271 const gfx::Rect& bounds) = 0; | 274 const gfx::Rect& bounds) = 0; |
| 272 | 275 |
| 273 // Perform all the initialization steps necessary for this object to represent | 276 // Perform all the initialization steps necessary for this object to represent |
| 274 // a full screen window. | 277 // a full screen window. |
| 275 // |reference_host_view| is the view associated with the creating page that | 278 // |reference_host_view| is the view associated with the creating page that |
| 276 // helps to position the full screen widget on the correct monitor. | 279 // helps to position the full screen widget on the correct monitor. |
| 277 virtual void InitAsFullscreen(RenderWidgetHostView* reference_host_view) = 0; | 280 virtual void InitAsFullscreen(RenderWidgetHostView* reference_host_view) = 0; |
| 278 | 281 |
| 279 // Sets the cursor to the one associated with the specified cursor_type | 282 // Sets the cursor to the one associated with the specified cursor_type |
| 280 virtual void UpdateCursor(const WebCursor& cursor) = 0; | 283 virtual void UpdateCursor(const WebCursor& cursor) = 0; |
| 281 | 284 |
| 282 // Indicates whether the page has finished loading. | 285 // Indicates whether the page has finished loading. |
| 283 virtual void SetIsLoading(bool is_loading) = 0; | 286 virtual void SetIsLoading(bool is_loading) = 0; |
| 284 | 287 |
| 285 // Cancel the ongoing composition of the input method attached to the view. | |
| 286 virtual void ImeCancelComposition() = 0; | |
| 287 | |
| 288 // Notifies the View that the renderer has ceased to exist. | 288 // Notifies the View that the renderer has ceased to exist. |
| 289 virtual void RenderProcessGone(base::TerminationStatus status, | 289 virtual void RenderProcessGone(base::TerminationStatus status, |
| 290 int error_code) = 0; | 290 int error_code) = 0; |
| 291 | 291 |
| 292 // Tells the View to destroy itself. | 292 // Tells the View to destroy itself. |
| 293 virtual void Destroy() = 0; | 293 virtual void Destroy() = 0; |
| 294 | 294 |
| 295 // Tells the View that the tooltip text for the current mouse position over | 295 // Tells the View that the tooltip text for the current mouse position over |
| 296 // the page has changed. | 296 // the page has changed. |
| 297 virtual void SetTooltipText(const base::string16& tooltip_text) = 0; | 297 virtual void SetTooltipText(const base::string16& tooltip_text) = 0; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 465 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 466 | 466 |
| 467 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 467 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 468 | 468 |
| 469 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 469 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 470 }; | 470 }; |
| 471 | 471 |
| 472 } // namespace content | 472 } // namespace content |
| 473 | 473 |
| 474 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 474 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |