OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/timer.h" | 9 #include "base/timer.h" |
10 #include "chrome/browser/chromeos/login/screen_observer.h" | 10 #include "chrome/browser/chromeos/login/screen_observer.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 WindowOpenDisposition disposition, | 30 WindowOpenDisposition disposition, |
31 PageTransition::Type transition) {} | 31 PageTransition::Type transition) {} |
32 virtual void NavigationStateChanged(const TabContents* source, | 32 virtual void NavigationStateChanged(const TabContents* source, |
33 unsigned changed_flags) = 0; | 33 unsigned changed_flags) = 0; |
34 virtual void AddNewContents(TabContents* source, | 34 virtual void AddNewContents(TabContents* source, |
35 TabContents* new_contents, | 35 TabContents* new_contents, |
36 WindowOpenDisposition disposition, | 36 WindowOpenDisposition disposition, |
37 const gfx::Rect& initial_pos, | 37 const gfx::Rect& initial_pos, |
38 bool user_gesture) {} | 38 bool user_gesture) {} |
39 virtual void ActivateContents(TabContents* contents) {} | 39 virtual void ActivateContents(TabContents* contents) {} |
| 40 virtual void DeactivateContents(TabContents* contents) {} |
40 virtual void LoadingStateChanged(TabContents* source) = 0; | 41 virtual void LoadingStateChanged(TabContents* source) = 0; |
41 virtual void CloseContents(TabContents* source) {} | 42 virtual void CloseContents(TabContents* source) {} |
42 virtual bool IsPopup(TabContents* source) { return false; } | 43 virtual bool IsPopup(TabContents* source) { return false; } |
43 virtual void URLStarredChanged(TabContents* source, bool starred) {} | 44 virtual void URLStarredChanged(TabContents* source, bool starred) {} |
44 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} | 45 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} |
45 virtual bool ShouldAddNavigationToHistory() const { return false; } | 46 virtual bool ShouldAddNavigationToHistory() const { return false; } |
46 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} | 47 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} |
47 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} | 48 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} |
48 virtual bool HandleContextMenu(const ContextMenuParams& params); | 49 virtual bool HandleContextMenu(const ContextMenuParams& params); |
49 | 50 |
50 // Called by |timeout_timer_|. Stops page fetching and closes screen. | 51 // Called by |timeout_timer_|. Stops page fetching and closes screen. |
51 void OnNetworkTimeout(); | 52 void OnNetworkTimeout(); |
52 | 53 |
53 // Start/stop timeout timer. | 54 // Start/stop timeout timer. |
54 void StartTimeoutTimer(); | 55 void StartTimeoutTimer(); |
55 void StopTimeoutTimer(); | 56 void StopTimeoutTimer(); |
56 | 57 |
57 private: | 58 private: |
58 // Timer used for network response timeout. | 59 // Timer used for network response timeout. |
59 base::OneShotTimer<WebPageScreen> timeout_timer_; | 60 base::OneShotTimer<WebPageScreen> timeout_timer_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(WebPageScreen); | 62 DISALLOW_COPY_AND_ASSIGN(WebPageScreen); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace chromeos | 65 } // namespace chromeos |
65 | 66 |
66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ |
OLD | NEW |