| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 427   void CreateNewWidget(int route_id, bool activatable); | 427   void CreateNewWidget(int route_id, bool activatable); | 
| 428 | 428 | 
| 429   // Senf the response to an extension api call. | 429   // Senf the response to an extension api call. | 
| 430   void SendExtensionResponse(int request_id, bool success, | 430   void SendExtensionResponse(int request_id, bool success, | 
| 431                              const std::string& response, | 431                              const std::string& response, | 
| 432                              const std::string& error); | 432                              const std::string& error); | 
| 433 | 433 | 
| 434  protected: | 434  protected: | 
| 435   // RenderWidgetHost protected overrides. | 435   // RenderWidgetHost protected overrides. | 
| 436   virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 436   virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 
| 437   virtual void OnEnterOrSpace(); | 437   virtual void OnUserGesture(); | 
| 438   virtual void NotifyRendererUnresponsive(); | 438   virtual void NotifyRendererUnresponsive(); | 
| 439   virtual void NotifyRendererResponsive(); | 439   virtual void NotifyRendererResponsive(); | 
| 440 | 440 | 
| 441   // IPC message handlers. | 441   // IPC message handlers. | 
| 442   void OnMsgShowView(int route_id, | 442   void OnMsgShowView(int route_id, | 
| 443                      WindowOpenDisposition disposition, | 443                      WindowOpenDisposition disposition, | 
| 444                      const gfx::Rect& initial_pos, | 444                      const gfx::Rect& initial_pos, | 
| 445                      bool user_gesture, | 445                      bool user_gesture, | 
| 446                      const GURL& creator_url); | 446                      const GURL& creator_url); | 
| 447   void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); | 447   void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); | 
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 632   // not an extension. | 632   // not an extension. | 
| 633   scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 633   scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 
| 634 | 634 | 
| 635   // True if the render view can be shut down suddenly. | 635   // True if the render view can be shut down suddenly. | 
| 636   bool sudden_termination_allowed_; | 636   bool sudden_termination_allowed_; | 
| 637 | 637 | 
| 638   DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 638   DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 
| 639 }; | 639 }; | 
| 640 | 640 | 
| 641 #endif  // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 641 #endif  // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 
| OLD | NEW | 
|---|