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 <memory> | 10 #include <memory> |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 391 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
392 virtual int GetCrashedErrorCode() const = 0; | 392 virtual int GetCrashedErrorCode() const = 0; |
393 | 393 |
394 // Whether the tab is in the process of being destroyed. | 394 // Whether the tab is in the process of being destroyed. |
395 virtual bool IsBeingDestroyed() const = 0; | 395 virtual bool IsBeingDestroyed() const = 0; |
396 | 396 |
397 // Convenience method for notifying the delegate of a navigation state | 397 // Convenience method for notifying the delegate of a navigation state |
398 // change. | 398 // change. |
399 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; | 399 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; |
400 | 400 |
401 // Notifies the WebContents that audio started or stopped being audible. | |
402 virtual void OnAudioStateChanged(bool is_audio_playing) = 0; | |
403 | |
404 // Get/Set the last time that the WebContents was made active (either when it | 401 // Get/Set the last time that the WebContents was made active (either when it |
405 // was created or shown with WasShown()). | 402 // was created or shown with WasShown()). |
406 virtual base::TimeTicks GetLastActiveTime() const = 0; | 403 virtual base::TimeTicks GetLastActiveTime() const = 0; |
407 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; | 404 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; |
408 | 405 |
409 // Get the last time that the WebContents was made hidden. | 406 // Get the last time that the WebContents was made hidden. |
410 virtual base::TimeTicks GetLastHiddenTime() const = 0; | 407 virtual base::TimeTicks GetLastHiddenTime() const = 0; |
411 | 408 |
412 // Invoked when the WebContents becomes shown/hidden. | 409 // Invoked when the WebContents becomes shown/hidden. |
413 virtual void WasShown() = 0; | 410 virtual void WasShown() = 0; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 | 762 |
766 private: | 763 private: |
767 // This interface should only be implemented inside content. | 764 // This interface should only be implemented inside content. |
768 friend class WebContentsImpl; | 765 friend class WebContentsImpl; |
769 WebContents() {} | 766 WebContents() {} |
770 }; | 767 }; |
771 | 768 |
772 } // namespace content | 769 } // namespace content |
773 | 770 |
774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 771 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |