Chromium Code Reviews| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 400 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 400 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
| 401 virtual int GetCrashedErrorCode() const = 0; | 401 virtual int GetCrashedErrorCode() const = 0; |
| 402 | 402 |
| 403 // Whether the tab is in the process of being destroyed. | 403 // Whether the tab is in the process of being destroyed. |
| 404 virtual bool IsBeingDestroyed() const = 0; | 404 virtual bool IsBeingDestroyed() const = 0; |
| 405 | 405 |
| 406 // Convenience method for notifying the delegate of a navigation state | 406 // Convenience method for notifying the delegate of a navigation state |
| 407 // change. | 407 // change. |
| 408 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; | 408 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; |
| 409 | 409 |
| 410 // Method for notifying WebContents that audio started or stopped being | |
|
clamy
2016/10/05 13:31:21
nit:s/Method for notifying WebContents/Notifies th
| |
| 411 // audible. | |
| 412 virtual void OnAudioStateChanged(bool is_audio_playing) = 0; | |
| 413 | |
| 410 // Get/Set the last time that the WebContents was made active (either when it | 414 // Get/Set the last time that the WebContents was made active (either when it |
| 411 // was created or shown with WasShown()). | 415 // was created or shown with WasShown()). |
| 412 virtual base::TimeTicks GetLastActiveTime() const = 0; | 416 virtual base::TimeTicks GetLastActiveTime() const = 0; |
| 413 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; | 417 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; |
| 414 | 418 |
| 415 // Invoked when the WebContents becomes shown/hidden. | 419 // Invoked when the WebContents becomes shown/hidden. |
| 416 virtual void WasShown() = 0; | 420 virtual void WasShown() = 0; |
| 417 virtual void WasHidden() = 0; | 421 virtual void WasHidden() = 0; |
| 418 | 422 |
| 419 // Returns true if the before unload and unload listeners need to be | 423 // Returns true if the before unload and unload listeners need to be |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 751 | 755 |
| 752 private: | 756 private: |
| 753 // This interface should only be implemented inside content. | 757 // This interface should only be implemented inside content. |
| 754 friend class WebContentsImpl; | 758 friend class WebContentsImpl; |
| 755 WebContents() {} | 759 WebContents() {} |
| 756 }; | 760 }; |
| 757 | 761 |
| 758 } // namespace content | 762 } // namespace content |
| 759 | 763 |
| 760 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 764 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |