| 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 // Notifies the WebContents that audio started or stopped being audible. | |
| 411 virtual void OnAudioStateChanged(bool is_audio_playing) = 0; | |
| 412 | |
| 413 // Get/Set the last time that the WebContents was made active (either when it | 410 // Get/Set the last time that the WebContents was made active (either when it |
| 414 // was created or shown with WasShown()). | 411 // was created or shown with WasShown()). |
| 415 virtual base::TimeTicks GetLastActiveTime() const = 0; | 412 virtual base::TimeTicks GetLastActiveTime() const = 0; |
| 416 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; | 413 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; |
| 417 | 414 |
| 418 // Invoked when the WebContents becomes shown/hidden. | 415 // Invoked when the WebContents becomes shown/hidden. |
| 419 virtual void WasShown() = 0; | 416 virtual void WasShown() = 0; |
| 420 virtual void WasHidden() = 0; | 417 virtual void WasHidden() = 0; |
| 421 | 418 |
| 422 // Returns true if the before unload and unload listeners need to be | 419 // 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... |
| 754 | 751 |
| 755 private: | 752 private: |
| 756 // This interface should only be implemented inside content. | 753 // This interface should only be implemented inside content. |
| 757 friend class WebContentsImpl; | 754 friend class WebContentsImpl; |
| 758 WebContents() {} | 755 WebContents() {} |
| 759 }; | 756 }; |
| 760 | 757 |
| 761 } // namespace content | 758 } // namespace content |
| 762 | 759 |
| 763 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 760 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |