OLD | NEW |
---|---|
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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! | 200 // NOTE: If you override this, call the superclass version too! |
201 virtual void WasHidden() = 0; | 201 virtual void WasHidden() = 0; |
202 | 202 |
203 // Invoked when the WebContents is restored. | |
204 // NOTE: If you override this, call the superclass version too! | |
jam
2012/05/18 23:40:51
nit: this comment isn't valid. also remove the one
Fady Samuel
2012/05/19 15:59:02
Done.
| |
205 virtual void WasRestored() = 0; | |
206 | |
203 // TODO(brettw) document these. | 207 // TODO(brettw) document these. |
204 virtual void ShowContents() = 0; | 208 virtual void ShowContents() = 0; |
205 virtual void HideContents() = 0; | 209 virtual void HideContents() = 0; |
206 | 210 |
207 // Returns true if the before unload and unload listeners need to be | 211 // 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 | 212 // 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 | 213 // before unload listener is executed and allows the user to exit, then this |
210 // returns false. | 214 // returns false. |
211 virtual bool NeedToFireBeforeUnload() = 0; | 215 virtual bool NeedToFireBeforeUnload() = 0; |
212 | 216 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
376 // Focuses the location bar. | 380 // Focuses the location bar. |
377 virtual void SetFocusToLocationBar(bool select_all) = 0; | 381 virtual void SetFocusToLocationBar(bool select_all) = 0; |
378 | 382 |
379 // Does this have an opener associated with it? | 383 // Does this have an opener associated with it? |
380 virtual bool HasOpener() const = 0; | 384 virtual bool HasOpener() const = 0; |
381 }; | 385 }; |
382 | 386 |
383 } // namespace content | 387 } // namespace content |
384 | 388 |
385 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 389 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |