| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // The page is trying to open a new widget (e.g. a select popup). The | 123 // The page is trying to open a new widget (e.g. a select popup). The |
| 124 // widget should be created associated with the given route, but it should | 124 // widget should be created associated with the given route, but it should |
| 125 // not be shown yet. That should happen in response to ShowCreatedWidget. | 125 // not be shown yet. That should happen in response to ShowCreatedWidget. |
| 126 // |popup_type| indicates if the widget is a popup and what kind of popup it | 126 // |popup_type| indicates if the widget is a popup and what kind of popup it |
| 127 // is (select, autofill...). | 127 // is (select, autofill...). |
| 128 virtual void CreateNewWidget(int route_id, | 128 virtual void CreateNewWidget(int route_id, |
| 129 WebKit::WebPopupType popup_type) = 0; | 129 WebKit::WebPopupType popup_type) = 0; |
| 130 | 130 |
| 131 // Creates a full screen RenderWidget. Similar to above. | 131 // Creates a full screen RenderWidget. Similar to above. |
| 132 virtual void CreateNewFullscreenWidget( | 132 virtual void CreateNewFullscreenWidget(int route_id) = 0; |
| 133 int route_id, WebKit::WebPopupType popup_type) = 0; | |
| 134 | 133 |
| 135 // Show a previously created page with the specified disposition and bounds. | 134 // Show a previously created page with the specified disposition and bounds. |
| 136 // The window is identified by the route_id passed to CreateNewWindow. | 135 // The window is identified by the route_id passed to CreateNewWindow. |
| 137 // | 136 // |
| 138 // Note: this is not called "ShowWindow" because that will clash with | 137 // Note: this is not called "ShowWindow" because that will clash with |
| 139 // the Windows function which is actually a #define. | 138 // the Windows function which is actually a #define. |
| 140 virtual void ShowCreatedWindow(int route_id, | 139 virtual void ShowCreatedWindow(int route_id, |
| 141 WindowOpenDisposition disposition, | 140 WindowOpenDisposition disposition, |
| 142 const gfx::Rect& initial_pos, | 141 const gfx::Rect& initial_pos, |
| 143 bool user_gesture) = 0; | 142 bool user_gesture) = 0; |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 bool remember) {} | 586 bool remember) {} |
| 588 | 587 |
| 589 // Notification that a worker process has crashed. | 588 // Notification that a worker process has crashed. |
| 590 void WorkerCrashed() {} | 589 void WorkerCrashed() {} |
| 591 | 590 |
| 592 protected: | 591 protected: |
| 593 virtual ~RenderViewHostDelegate() {} | 592 virtual ~RenderViewHostDelegate() {} |
| 594 }; | 593 }; |
| 595 | 594 |
| 596 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 595 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |