Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: ui/web_dialogs/web_dialog_delegate.h

Issue 889403004: Rename initial_pos to initial_rect in ShowWidget and ShowView IPCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/web_dialogs/test/test_web_contents_handler.cc ('k') | ui/web_dialogs/web_dialog_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_ 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
6 #define UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_ 6 #define UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // A callback to allow the delegate to open a new URL inside |source|. 114 // A callback to allow the delegate to open a new URL inside |source|.
115 // On return |out_new_contents| should contain the WebContents the URL 115 // On return |out_new_contents| should contain the WebContents the URL
116 // is opened in. Return false to use the default handler. 116 // is opened in. Return false to use the default handler.
117 virtual bool HandleOpenURLFromTab(content::WebContents* source, 117 virtual bool HandleOpenURLFromTab(content::WebContents* source,
118 const content::OpenURLParams& params, 118 const content::OpenURLParams& params,
119 content::WebContents** out_new_contents); 119 content::WebContents** out_new_contents);
120 120
121 // A callback to create a new tab with |new_contents|. |source| is the 121 // A callback to create a new tab with |new_contents|. |source| is the
122 // WebContent where the operation originated. |disposition| controls how the 122 // WebContent where the operation originated. |disposition| controls how the
123 // new tab should be opened. |initial_pos| is the position of the window if a 123 // new tab should be opened. |initial_rect| is the position and size of the
124 // new window is created. |user_gesture| is true if the operation was started 124 // window if a new window is created. |user_gesture| is true if the operation
125 // by a user gesture. Return false to use the default handler. 125 // was started by a user gesture. Return false to use the default handler.
126 virtual bool HandleAddNewContents(content::WebContents* source, 126 virtual bool HandleAddNewContents(content::WebContents* source,
127 content::WebContents* new_contents, 127 content::WebContents* new_contents,
128 WindowOpenDisposition disposition, 128 WindowOpenDisposition disposition,
129 const gfx::Rect& initial_pos, 129 const gfx::Rect& initial_rect,
130 bool user_gesture); 130 bool user_gesture);
131 131
132 // A callback to control whether a WebContents will be created. Returns 132 // A callback to control whether a WebContents will be created. Returns
133 // false to disallow the creation. Return true to use the default handler. 133 // false to disallow the creation. Return true to use the default handler.
134 virtual bool HandleShouldCreateWebContents(); 134 virtual bool HandleShouldCreateWebContents();
135 135
136 // Stores the dialog bounds. 136 // Stores the dialog bounds.
137 virtual void StoreDialogSize(const gfx::Size& dialog_size) {} 137 virtual void StoreDialogSize(const gfx::Size& dialog_size) {}
138 138
139 virtual ~WebDialogDelegate() {} 139 virtual ~WebDialogDelegate() {}
140 }; 140 };
141 141
142 } // namespace ui 142 } // namespace ui
143 143
144 #endif // UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_ 144 #endif // UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/web_dialogs/test/test_web_contents_handler.cc ('k') | ui/web_dialogs/web_dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698