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

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

Issue 10696158: Rename WasRestored to WasShown across all uses. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Bring to ToT to commit Created 8 years, 4 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 // Whether the tab is in the process of being destroyed. 184 // Whether the tab is in the process of being destroyed.
185 // Added as a tentative work-around for focus related bug #4633. This allows 185 // Added as a tentative work-around for focus related bug #4633. This allows
186 // us not to store focus when a tab is being closed. 186 // us not to store focus when a tab is being closed.
187 virtual bool IsBeingDestroyed() const = 0; 187 virtual bool IsBeingDestroyed() const = 0;
188 188
189 // Convenience method for notifying the delegate of a navigation state 189 // Convenience method for notifying the delegate of a navigation state
190 // change. See InvalidateType enum. 190 // change. See InvalidateType enum.
191 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; 191 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0;
192 192
193 // Get the last time that the WebContents was made visible with WasRestored() 193 // Get the last time that the WebContents was made visible with WasShown()
194 virtual base::TimeTicks GetLastSelectedTime() const = 0; 194 virtual base::TimeTicks GetLastSelectedTime() const = 0;
195 195
196 // Invoked when the WebContents becomes shown/hidden. 196 // Invoked when the WebContents becomes shown/hidden.
197 virtual void WasRestored() = 0; 197 virtual void WasShown() = 0;
198 virtual void WasHidden() = 0; 198 virtual void WasHidden() = 0;
199 199
200 // Returns true if the before unload and unload listeners need to be 200 // Returns true if the before unload and unload listeners need to be
201 // fired. The value of this changes over time. For example, if true and the 201 // fired. The value of this changes over time. For example, if true and the
202 // before unload listener is executed and allows the user to exit, then this 202 // before unload listener is executed and allows the user to exit, then this
203 // returns false. 203 // returns false.
204 virtual bool NeedToFireBeforeUnload() = 0; 204 virtual bool NeedToFireBeforeUnload() = 0;
205 205
206 // Commands ------------------------------------------------------------------ 206 // Commands ------------------------------------------------------------------
207 207
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Focuses the location bar. 378 // Focuses the location bar.
379 virtual void SetFocusToLocationBar(bool select_all) = 0; 379 virtual void SetFocusToLocationBar(bool select_all) = 0;
380 380
381 // Does this have an opener associated with it? 381 // Does this have an opener associated with it?
382 virtual bool HasOpener() const = 0; 382 virtual bool HasOpener() const = 0;
383 }; 383 };
384 384
385 } // namespace content 385 } // namespace content
386 386
387 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 387 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698