| 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 14 matching lines...) Expand all Loading... |
| 25 #include "ui/base/window_open_disposition.h" | 25 #include "ui/base/window_open_disposition.h" |
| 26 #include "ui/gfx/geometry/rect.h" | 26 #include "ui/gfx/geometry/rect.h" |
| 27 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
| 28 | 28 |
| 29 #if defined(OS_ANDROID) | 29 #if defined(OS_ANDROID) |
| 30 #include "base/android/scoped_java_ref.h" | 30 #include "base/android/scoped_java_ref.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 namespace base { | 33 namespace base { |
| 34 class DictionaryValue; | 34 class DictionaryValue; |
| 35 class Time; | 35 class TimeTicks; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 struct WebFindOptions; | 39 struct WebFindOptions; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace net { | 42 namespace net { |
| 43 struct LoadStateWithParam; | 43 struct LoadStateWithParam; |
| 44 } | 44 } |
| 45 | 45 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 346 |
| 347 // Whether the tab is in the process of being destroyed. | 347 // Whether the tab is in the process of being destroyed. |
| 348 virtual bool IsBeingDestroyed() const = 0; | 348 virtual bool IsBeingDestroyed() const = 0; |
| 349 | 349 |
| 350 // Convenience method for notifying the delegate of a navigation state | 350 // Convenience method for notifying the delegate of a navigation state |
| 351 // change. | 351 // change. |
| 352 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; | 352 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; |
| 353 | 353 |
| 354 // Get the last time that the WebContents was made active (either when it was | 354 // Get the last time that the WebContents was made active (either when it was |
| 355 // created or shown with WasShown()). | 355 // created or shown with WasShown()). |
| 356 virtual base::Time GetLastActiveTime() const = 0; | 356 virtual base::TimeTicks GetLastActiveTime() const = 0; |
| 357 | 357 |
| 358 // Invoked when the WebContents becomes shown/hidden. | 358 // Invoked when the WebContents becomes shown/hidden. |
| 359 virtual void WasShown() = 0; | 359 virtual void WasShown() = 0; |
| 360 virtual void WasHidden() = 0; | 360 virtual void WasHidden() = 0; |
| 361 | 361 |
| 362 // Returns true if the before unload and unload listeners need to be | 362 // Returns true if the before unload and unload listeners need to be |
| 363 // fired. The value of this changes over time. For example, if true and the | 363 // fired. The value of this changes over time. For example, if true and the |
| 364 // before unload listener is executed and allows the user to exit, then this | 364 // before unload listener is executed and allows the user to exit, then this |
| 365 // returns false. | 365 // returns false. |
| 366 virtual bool NeedToFireBeforeUnload() = 0; | 366 virtual bool NeedToFireBeforeUnload() = 0; |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 | 659 |
| 660 private: | 660 private: |
| 661 // This interface should only be implemented inside content. | 661 // This interface should only be implemented inside content. |
| 662 friend class WebContentsImpl; | 662 friend class WebContentsImpl; |
| 663 WebContents() {} | 663 WebContents() {} |
| 664 }; | 664 }; |
| 665 | 665 |
| 666 } // namespace content | 666 } // namespace content |
| 667 | 667 |
| 668 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 668 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |