| 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_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 virtual void ForwardEditCommand(const std::string& name, | 411 virtual void ForwardEditCommand(const std::string& name, |
| 412 const std::string& value); | 412 const std::string& value); |
| 413 virtual gfx::Rect GetRootWindowResizerRect() const; | 413 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 414 | 414 |
| 415 // Creates a new RenderView with the given route id. | 415 // Creates a new RenderView with the given route id. |
| 416 void CreateNewWindow(int route_id, ModalDialogEvent modal_dialog_event); | 416 void CreateNewWindow(int route_id, ModalDialogEvent modal_dialog_event); |
| 417 | 417 |
| 418 // Creates a new RenderWidget with the given route id. | 418 // Creates a new RenderWidget with the given route id. |
| 419 void CreateNewWidget(int route_id, bool activatable); | 419 void CreateNewWidget(int route_id, bool activatable); |
| 420 | 420 |
| 421 // Senf the response to an extension api call. | 421 // Send the response to an extension api call. |
| 422 void SendExtensionResponse(int request_id, bool success, | 422 void SendExtensionResponse(int request_id, bool success, |
| 423 const std::string& response, | 423 const std::string& response, |
| 424 const std::string& error); | 424 const std::string& error); |
| 425 | 425 |
| 426 // Send a response to an extension api call that it was blocked for lack of |
| 427 // permission. |
| 428 void BlockExtensionRequest(int request_id); |
| 429 |
| 426 void SignalModalDialogEvent(); | 430 void SignalModalDialogEvent(); |
| 427 void ResetModalDialogEvent(); | 431 void ResetModalDialogEvent(); |
| 428 | 432 |
| 429 // Tell renderer which browser window it is being attached to. | 433 // Tell renderer which browser window it is being attached to. |
| 430 void UpdateBrowserWindowId(int window_id); | 434 void UpdateBrowserWindowId(int window_id); |
| 431 | 435 |
| 432 void set_in_inspect_element_mode(bool enabled) { | 436 void set_in_inspect_element_mode(bool enabled) { |
| 433 in_inspect_element_mode_ = enabled; | 437 in_inspect_element_mode_ = enabled; |
| 434 } | 438 } |
| 435 | 439 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 // While in this mode, mouse click is converted into InspectElement | 652 // While in this mode, mouse click is converted into InspectElement |
| 649 // command. | 653 // command. |
| 650 bool in_inspect_element_mode_; | 654 bool in_inspect_element_mode_; |
| 651 | 655 |
| 652 NotificationRegistrar registrar_; | 656 NotificationRegistrar registrar_; |
| 653 | 657 |
| 654 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 658 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 655 }; | 659 }; |
| 656 | 660 |
| 657 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 661 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |