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

Side by Side Diff: content/public/browser/web_contents.h

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 // Commands ------------------------------------------------------------------ 215 // Commands ------------------------------------------------------------------
216 216
217 // Stop any pending navigation. 217 // Stop any pending navigation.
218 virtual void Stop() = 0; 218 virtual void Stop() = 0;
219 219
220 // Creates a new WebContents with the same state as this one. The returned 220 // Creates a new WebContents with the same state as this one. The returned
221 // heap-allocated pointer is owned by the caller. 221 // heap-allocated pointer is owned by the caller.
222 virtual WebContents* Clone() = 0; 222 virtual WebContents* Clone() = 0;
223 223
224 // Window management ---------------------------------------------------------
225
226 // Adds a new tab or window with the given already-created contents.
227 virtual void AddNewContents(WebContents* new_contents,
228 WindowOpenDisposition disposition,
229 const gfx::Rect& initial_pos,
230 bool user_gesture) = 0;
231
232 // Views and focus ----------------------------------------------------------- 224 // Views and focus -----------------------------------------------------------
233 // TODO(brettw): Most of these should be removed and the caller should call 225 // TODO(brettw): Most of these should be removed and the caller should call
234 // the view directly. 226 // the view directly.
235 227
236 // Returns the actual window that is focused when this WebContents is shown. 228 // Returns the actual window that is focused when this WebContents is shown.
237 virtual gfx::NativeView GetContentNativeView() const = 0; 229 virtual gfx::NativeView GetContentNativeView() const = 0;
238 230
239 // Returns the NativeView associated with this WebContents. Outside of 231 // Returns the NativeView associated with this WebContents. Outside of
240 // automation in the context of the UI, this is required to be implemented. 232 // automation in the context of the UI, this is required to be implemented.
241 virtual gfx::NativeView GetNativeView() const = 0; 233 virtual gfx::NativeView GetNativeView() const = 0;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Focuses the location bar. 379 // Focuses the location bar.
388 virtual void SetFocusToLocationBar(bool select_all) = 0; 380 virtual void SetFocusToLocationBar(bool select_all) = 0;
389 381
390 // Does this have an opener associated with it? 382 // Does this have an opener associated with it?
391 virtual bool HasOpener() const = 0; 383 virtual bool HasOpener() const = 0;
392 }; 384 };
393 385
394 } // namespace content 386 } // namespace content
395 387
396 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 388 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698