OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDER_VIEW_HOST_DELEGATE_H__ | 5 #ifndef CHROME_BROWSER_RENDER_VIEW_HOST_DELEGATE_H__ |
6 #define CHROME_BROWSER_RENDER_VIEW_HOST_DELEGATE_H__ | 6 #define CHROME_BROWSER_RENDER_VIEW_HOST_DELEGATE_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // window should be created associated with the given route, but it should | 54 // window should be created associated with the given route, but it should |
55 // not be shown yet. That should happen in response to ShowCreatedWindow. | 55 // not be shown yet. That should happen in response to ShowCreatedWindow. |
56 // | 56 // |
57 // Note: this is not called "CreateWindow" because that will clash with | 57 // Note: this is not called "CreateWindow" because that will clash with |
58 // the Windows function which is actually a #define. | 58 // the Windows function which is actually a #define. |
59 virtual void CreateNewWindow(int route_id, HANDLE modal_dialog_event) = 0; | 59 virtual void CreateNewWindow(int route_id, HANDLE modal_dialog_event) = 0; |
60 | 60 |
61 // The page is trying to open a new widget (e.g. a select popup). The | 61 // The page is trying to open a new widget (e.g. a select popup). The |
62 // widget should be created associated with the given route, but it should | 62 // widget should be created associated with the given route, but it should |
63 // not be shown yet. That should happen in response to ShowCreatedWidget. | 63 // not be shown yet. That should happen in response to ShowCreatedWidget. |
64 // If |focus_on_show| is true, the focus is given to the widget when shown, | 64 // If |activatable| is false, the widget cannot be activated or get focus. |
65 // otherwise the focus is not changed. | 65 virtual void CreateNewWidget(int route_id, bool activatable) = 0; |
66 virtual void CreateNewWidget(int route_id, | |
67 bool focus_on_show) = 0; | |
68 | 66 |
69 // Show a previously created page with the specified disposition and bounds. | 67 // Show a previously created page with the specified disposition and bounds. |
70 // The window is identified by the route_id passed to CreateNewWindow. | 68 // The window is identified by the route_id passed to CreateNewWindow. |
71 // | 69 // |
72 // Note: this is not called "ShowWindow" because that will clash with | 70 // Note: this is not called "ShowWindow" because that will clash with |
73 // the Windows function which is actually a #define. | 71 // the Windows function which is actually a #define. |
74 virtual void ShowCreatedWindow(int route_id, | 72 virtual void ShowCreatedWindow(int route_id, |
75 WindowOpenDisposition disposition, | 73 WindowOpenDisposition disposition, |
76 const gfx::Rect& initial_pos, | 74 const gfx::Rect& initial_pos, |
77 bool user_gesture) = 0; | 75 bool user_gesture) = 0; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 const webkit_glue::WebApplicationInfo& app_info) { } | 374 const webkit_glue::WebApplicationInfo& app_info) { } |
377 | 375 |
378 // Notification the user has pressed enter or space while focus was on the | 376 // Notification the user has pressed enter or space while focus was on the |
379 // page. This is used to avoid uninitiated user downloads (aka carpet | 377 // page. This is used to avoid uninitiated user downloads (aka carpet |
380 // bombing), see DownloadRequestManager for details. | 378 // bombing), see DownloadRequestManager for details. |
381 virtual void OnEnterOrSpace() { } | 379 virtual void OnEnterOrSpace() { } |
382 }; | 380 }; |
383 | 381 |
384 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_DELEGATE_H__ | 382 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_DELEGATE_H__ |
385 | 383 |
OLD | NEW |