| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // * when insertText of NSTextInput is called (on Mac). | 321 // * when insertText of NSTextInput is called (on Mac). |
| 322 void ImeConfirmComposition(const string16& ime_string); | 322 void ImeConfirmComposition(const string16& ime_string); |
| 323 | 323 |
| 324 // Cancels an ongoing composition. | 324 // Cancels an ongoing composition. |
| 325 void ImeCancelComposition(); | 325 void ImeCancelComposition(); |
| 326 | 326 |
| 327 // This is for derived classes to give us access to the resizer rect. | 327 // This is for derived classes to give us access to the resizer rect. |
| 328 // And to also expose it to the RenderWidgetHostView. | 328 // And to also expose it to the RenderWidgetHostView. |
| 329 virtual gfx::Rect GetRootWindowResizerRect() const; | 329 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 330 | 330 |
| 331 // Makes an IPC call to toggle the spelling panel. |
| 332 void ToggleSpellPanel(bool is_currently_visible); |
| 333 |
| 334 // Makes an IPC call to tell webkit to replace the currently selected word. |
| 335 void ReplaceWord(const std::wstring& word); |
| 336 |
| 337 // Makes an IPC call to tell webkit to advance to the next misspelling. |
| 338 void AdvanceToNextMisspelling(); |
| 339 |
| 331 // Sets the active state (i.e., control tints). | 340 // Sets the active state (i.e., control tints). |
| 332 virtual void SetActive(bool active); | 341 virtual void SetActive(bool active); |
| 333 | 342 |
| 334 protected: | 343 protected: |
| 335 // Internal implementation of the public Forward*Event() methods. | 344 // Internal implementation of the public Forward*Event() methods. |
| 336 void ForwardInputEvent( | 345 void ForwardInputEvent( |
| 337 const WebKit::WebInputEvent& input_event, int event_size); | 346 const WebKit::WebInputEvent& input_event, int event_size); |
| 338 | 347 |
| 339 // Called when we receive a notification indicating that the renderer | 348 // Called when we receive a notification indicating that the renderer |
| 340 // process has gone. This will reset our state so that our state will be | 349 // process has gone. This will reset our state so that our state will be |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 | 530 |
| 522 // Set when we cancel updating the text direction. | 531 // Set when we cancel updating the text direction. |
| 523 // This flag also ignores succeeding update requests until we call | 532 // This flag also ignores succeeding update requests until we call |
| 524 // NotifyTextDirection(). | 533 // NotifyTextDirection(). |
| 525 bool text_direction_canceled_; | 534 bool text_direction_canceled_; |
| 526 | 535 |
| 527 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 536 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 528 }; | 537 }; |
| 529 | 538 |
| 530 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 539 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |