| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual void TextInputStateChanged( | 227 virtual void TextInputStateChanged( |
| 228 const ViewHostMsg_TextInputState_Params& params) = 0; | 228 const ViewHostMsg_TextInputState_Params& params) = 0; |
| 229 | 229 |
| 230 // Cancel the ongoing composition of the input method attached to the view. | 230 // Cancel the ongoing composition of the input method attached to the view. |
| 231 virtual void ImeCancelComposition() = 0; | 231 virtual void ImeCancelComposition() = 0; |
| 232 | 232 |
| 233 // Notifies the View that the renderer has ceased to exist. | 233 // Notifies the View that the renderer has ceased to exist. |
| 234 virtual void RenderProcessGone(base::TerminationStatus status, | 234 virtual void RenderProcessGone(base::TerminationStatus status, |
| 235 int error_code) = 0; | 235 int error_code) = 0; |
| 236 | 236 |
| 237 // Notifies the View that the renderer's host has ceased to exist. | |
| 238 // The default implementation of this is a no-op. This hack exists to fix | |
| 239 // a crash on the branch. | |
| 240 // TODO(ccameron): Clean this up. | |
| 241 // http://crbug.com/404828 | |
| 242 virtual void RenderWidgetHostGone() {} | |
| 243 | |
| 244 // Tells the View to destroy itself. | 237 // Tells the View to destroy itself. |
| 245 virtual void Destroy() = 0; | 238 virtual void Destroy() = 0; |
| 246 | 239 |
| 247 // Tells the View that the tooltip text for the current mouse position over | 240 // Tells the View that the tooltip text for the current mouse position over |
| 248 // the page has changed. | 241 // the page has changed. |
| 249 virtual void SetTooltipText(const base::string16& tooltip_text) = 0; | 242 virtual void SetTooltipText(const base::string16& tooltip_text) = 0; |
| 250 | 243 |
| 251 // Notifies the View that the renderer selection bounds has changed. | 244 // Notifies the View that the renderer selection bounds has changed. |
| 252 // |start_rect| and |end_rect| are the bounds end of the selection in the | 245 // |start_rect| and |end_rect| are the bounds end of the selection in the |
| 253 // coordinate system of the render view. |start_direction| and |end_direction| | 246 // coordinate system of the render view. |start_direction| and |end_direction| |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 base::OneShotTimer flush_input_timer_; | 417 base::OneShotTimer flush_input_timer_; |
| 425 | 418 |
| 426 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 419 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 427 | 420 |
| 428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 421 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 429 }; | 422 }; |
| 430 | 423 |
| 431 } // namespace content | 424 } // namespace content |
| 432 | 425 |
| 433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |