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

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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 // Commands ------------------------------------------------------------------ 217 // Commands ------------------------------------------------------------------
218 218
219 // Stop any pending navigation. 219 // Stop any pending navigation.
220 virtual void Stop() = 0; 220 virtual void Stop() = 0;
221 221
222 // Creates a new WebContents with the same state as this one. The returned 222 // Creates a new WebContents with the same state as this one. The returned
223 // heap-allocated pointer is owned by the caller. 223 // heap-allocated pointer is owned by the caller.
224 virtual WebContents* Clone() = 0; 224 virtual WebContents* Clone() = 0;
225 225
226 // Window management ---------------------------------------------------------
227
228 // Adds a new tab or window with the given already-created contents.
229 virtual void AddNewContents(WebContents* new_contents,
230 WindowOpenDisposition disposition,
231 const gfx::Rect& initial_pos,
232 bool user_gesture) = 0;
233
234 // Views and focus ----------------------------------------------------------- 226 // Views and focus -----------------------------------------------------------
235 // TODO(brettw): Most of these should be removed and the caller should call 227 // TODO(brettw): Most of these should be removed and the caller should call
236 // the view directly. 228 // the view directly.
237 229
238 // Returns the actual window that is focused when this WebContents is shown. 230 // Returns the actual window that is focused when this WebContents is shown.
239 virtual gfx::NativeView GetContentNativeView() const = 0; 231 virtual gfx::NativeView GetContentNativeView() const = 0;
240 232
241 // Returns the NativeView associated with this WebContents. Outside of 233 // Returns the NativeView associated with this WebContents. Outside of
242 // automation in the context of the UI, this is required to be implemented. 234 // automation in the context of the UI, this is required to be implemented.
243 virtual gfx::NativeView GetNativeView() const = 0; 235 virtual gfx::NativeView GetNativeView() const = 0;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // Focuses the location bar. 381 // Focuses the location bar.
390 virtual void SetFocusToLocationBar(bool select_all) = 0; 382 virtual void SetFocusToLocationBar(bool select_all) = 0;
391 383
392 // Does this have an opener associated with it? 384 // Does this have an opener associated with it?
393 virtual bool HasOpener() const = 0; 385 virtual bool HasOpener() const = 0;
394 }; 386 };
395 387
396 } // namespace content 388 } // namespace content
397 389
398 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 390 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698