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

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

Issue 10407122: Get rid of the last RenderViewHostDelegate usage in chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | 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 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 virtual void ResetOverrideEncoding() = 0; 303 virtual void ResetOverrideEncoding() = 0;
304 304
305 // Returns the settings which get passed to the renderer. 305 // Returns the settings which get passed to the renderer.
306 virtual content::RendererPreferences* GetMutableRendererPrefs() = 0; 306 virtual content::RendererPreferences* GetMutableRendererPrefs() = 0;
307 307
308 // Set the time when we started to create the new tab page. This time is 308 // Set the time when we started to create the new tab page. This time is
309 // from before we created this WebContents. 309 // from before we created this WebContents.
310 virtual void SetNewTabStartTime(const base::TimeTicks& time) = 0; 310 virtual void SetNewTabStartTime(const base::TimeTicks& time) = 0;
311 virtual base::TimeTicks GetNewTabStartTime() const = 0; 311 virtual base::TimeTicks GetNewTabStartTime() const = 0;
312 312
313 // Tells the tab to close now. The tab will take care not to close until it's
314 // out of nested message loops.
315 virtual void Close() = 0;
316
313 // Notification that tab closing has started. This can be called multiple 317 // Notification that tab closing has started. This can be called multiple
314 // times, subsequent calls are ignored. 318 // times, subsequent calls are ignored.
315 virtual void OnCloseStarted() = 0; 319 virtual void OnCloseStarted() = 0;
316 320
317 // Returns true if underlying WebContentsView should accept drag-n-drop. 321 // Returns true if underlying WebContentsView should accept drag-n-drop.
318 virtual bool ShouldAcceptDragAndDrop() const = 0; 322 virtual bool ShouldAcceptDragAndDrop() const = 0;
319 323
320 // A render view-originated drag has ended. Informs the render view host and 324 // A render view-originated drag has ended. Informs the render view host and
321 // WebContentsDelegate. 325 // WebContentsDelegate.
322 virtual void SystemDragEnded() = 0; 326 virtual void SystemDragEnded() = 0;
323 327
328 // Notification the user has made a gesture while focus was on the
329 // page. This is used to avoid uninitiated user downloads (aka carpet
330 // bombing), see DownloadRequestLimiter for details.
331 virtual void UserGestureDone() = 0;
332
324 // Indicates if this tab was explicitly closed by the user (control-w, close 333 // Indicates if this tab was explicitly closed by the user (control-w, close
325 // tab menu item...). This is false for actions that indirectly close the tab, 334 // tab menu item...). This is false for actions that indirectly close the tab,
326 // such as closing the window. The setter is maintained by TabStripModel, and 335 // such as closing the window. The setter is maintained by TabStripModel, and
327 // the getter only useful from within TAB_CLOSED notification 336 // the getter only useful from within TAB_CLOSED notification
328 virtual void SetClosedByUserGesture(bool value) = 0; 337 virtual void SetClosedByUserGesture(bool value) = 0;
329 virtual bool GetClosedByUserGesture() const = 0; 338 virtual bool GetClosedByUserGesture() const = 0;
330 339
331 // Gets the zoom level for this tab. 340 // Gets the zoom level for this tab.
332 virtual double GetZoomLevel() const = 0; 341 virtual double GetZoomLevel() const = 0;
333 342
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Focuses the location bar. 387 // Focuses the location bar.
379 virtual void SetFocusToLocationBar(bool select_all) = 0; 388 virtual void SetFocusToLocationBar(bool select_all) = 0;
380 389
381 // Does this have an opener associated with it? 390 // Does this have an opener associated with it?
382 virtual bool HasOpener() const = 0; 391 virtual bool HasOpener() const = 0;
383 }; 392 };
384 393
385 } // namespace content 394 } // namespace content
386 395
387 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 396 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698