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

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

Issue 10411033: Browser Plugin: WebContents should notify when it's restored (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merged with ToT 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/public/browser/notification_types.h ('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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Convenience method for notifying the delegate of a navigation state 190 // Convenience method for notifying the delegate of a navigation state
191 // change. See InvalidateType enum. 191 // change. See InvalidateType enum.
192 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; 192 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0;
193 193
194 // Invoked when the WebContents becomes selected. If you override, be sure 194 // Invoked when the WebContents becomes selected. If you override, be sure
195 // and invoke super's implementation. 195 // and invoke super's implementation.
196 virtual void DidBecomeSelected() = 0; 196 virtual void DidBecomeSelected() = 0;
197 virtual base::TimeTicks GetLastSelectedTime() const = 0; 197 virtual base::TimeTicks GetLastSelectedTime() const = 0;
198 198
199 // Invoked when the WebContents becomes hidden. 199 // Invoked when the WebContents becomes hidden.
200 // NOTE: If you override this, call the superclass version too!
201 virtual void WasHidden() = 0; 200 virtual void WasHidden() = 0;
202 201
202 // Invoked when the WebContents is restored.
203 virtual void WasRestored() = 0;
204
203 // TODO(brettw) document these. 205 // TODO(brettw) document these.
204 virtual void ShowContents() = 0; 206 virtual void ShowContents() = 0;
205 virtual void HideContents() = 0; 207 virtual void HideContents() = 0;
206 208
207 // Returns true if the before unload and unload listeners need to be 209 // Returns true if the before unload and unload listeners need to be
208 // fired. The value of this changes over time. For example, if true and the 210 // fired. The value of this changes over time. For example, if true and the
209 // before unload listener is executed and allows the user to exit, then this 211 // before unload listener is executed and allows the user to exit, then this
210 // returns false. 212 // returns false.
211 virtual bool NeedToFireBeforeUnload() = 0; 213 virtual bool NeedToFireBeforeUnload() = 0;
212 214
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // Focuses the location bar. 378 // Focuses the location bar.
377 virtual void SetFocusToLocationBar(bool select_all) = 0; 379 virtual void SetFocusToLocationBar(bool select_all) = 0;
378 380
379 // Does this have an opener associated with it? 381 // Does this have an opener associated with it?
380 virtual bool HasOpener() const = 0; 382 virtual bool HasOpener() const = 0;
381 }; 383 };
382 384
383 } // namespace content 385 } // namespace content
384 386
385 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 387 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698