| 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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 virtual bool IsBeingDestroyed() const = 0; | 325 virtual bool IsBeingDestroyed() const = 0; |
| 326 | 326 |
| 327 // Convenience method for notifying the delegate of a navigation state | 327 // Convenience method for notifying the delegate of a navigation state |
| 328 // change. | 328 // change. |
| 329 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; | 329 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; |
| 330 | 330 |
| 331 // Get the last time that the WebContents was made active (either when it was | 331 // Get the last time that the WebContents was made active (either when it was |
| 332 // created or shown with WasShown()). | 332 // created or shown with WasShown()). |
| 333 virtual base::TimeTicks GetLastActiveTime() const = 0; | 333 virtual base::TimeTicks GetLastActiveTime() const = 0; |
| 334 | 334 |
| 335 // Whether the tab is currently hidden. Note that screenshots or video (e.g. |
| 336 // mirroring) might be captured from a tab even through it's hidden. |
| 337 virtual bool IsHiddenIgnoringCapturing() const = 0; |
| 335 // Invoked when the WebContents becomes shown/hidden. | 338 // Invoked when the WebContents becomes shown/hidden. |
| 336 virtual void WasShown() = 0; | 339 virtual void WasShown() = 0; |
| 337 virtual void WasHidden() = 0; | 340 virtual void WasHidden() = 0; |
| 338 | 341 |
| 339 // Returns true if the before unload and unload listeners need to be | 342 // Returns true if the before unload and unload listeners need to be |
| 340 // fired. The value of this changes over time. For example, if true and the | 343 // fired. The value of this changes over time. For example, if true and the |
| 341 // before unload listener is executed and allows the user to exit, then this | 344 // before unload listener is executed and allows the user to exit, then this |
| 342 // returns false. | 345 // returns false. |
| 343 virtual bool NeedToFireBeforeUnload() = 0; | 346 virtual bool NeedToFireBeforeUnload() = 0; |
| 344 | 347 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 | 617 |
| 615 private: | 618 private: |
| 616 // This interface should only be implemented inside content. | 619 // This interface should only be implemented inside content. |
| 617 friend class WebContentsImpl; | 620 friend class WebContentsImpl; |
| 618 WebContents() {} | 621 WebContents() {} |
| 619 }; | 622 }; |
| 620 | 623 |
| 621 } // namespace content | 624 } // namespace content |
| 622 | 625 |
| 623 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 626 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |