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

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

Issue 226523006: Changes to content/ to facilitate new zoom extension API (work in progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // SwapOut in RenderViewHost, which run the unload handler. 324 // SwapOut in RenderViewHost, which run the unload handler.
325 // 325 //
326 // |for_cross_site_transition| indicates whether this call is for the current 326 // |for_cross_site_transition| indicates whether this call is for the current
327 // frame during a cross-process navigation. False means we're closing the 327 // frame during a cross-process navigation. False means we're closing the
328 // entire tab. 328 // entire tab.
329 // 329 //
330 // TODO(creis): We should run the beforeunload handler for every frame that 330 // TODO(creis): We should run the beforeunload handler for every frame that
331 // has one. 331 // has one.
332 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0; 332 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0;
333 333
334 // Sets whether this WebContents has a temporary zoom level.
335 virtual void SetTemporaryZoomSettings(bool temporary_zoom_settings) = 0;
336
334 // Commands ------------------------------------------------------------------ 337 // Commands ------------------------------------------------------------------
335 338
336 // Stop any pending navigation. 339 // Stop any pending navigation.
337 virtual void Stop() = 0; 340 virtual void Stop() = 0;
338 341
339 // Creates a new WebContents with the same state as this one. The returned 342 // Creates a new WebContents with the same state as this one. The returned
340 // heap-allocated pointer is owned by the caller. 343 // heap-allocated pointer is owned by the caller.
341 virtual WebContents* Clone() = 0; 344 virtual WebContents* Clone() = 0;
342 345
343 // Reloads the focused frame. 346 // Reloads the focused frame.
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 552
550 private: 553 private:
551 // This interface should only be implemented inside content. 554 // This interface should only be implemented inside content.
552 friend class WebContentsImpl; 555 friend class WebContentsImpl;
553 WebContents() {} 556 WebContents() {}
554 }; 557 };
555 558
556 } // namespace content 559 } // namespace content
557 560
558 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 561 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698