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_VIEWS_APP_LAUNCHER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_APP_LAUNCHER_H_ |
6 #define CHROME_BROWSER_VIEWS_APP_LAUNCHER_H_ | 6 #define CHROME_BROWSER_VIEWS_APP_LAUNCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 WindowOpenDisposition disposition, | 79 WindowOpenDisposition disposition, |
80 PageTransition::Type transition); | 80 PageTransition::Type transition); |
81 virtual void NavigationStateChanged(const TabContents* source, | 81 virtual void NavigationStateChanged(const TabContents* source, |
82 unsigned changed_flags) {} | 82 unsigned changed_flags) {} |
83 virtual void AddNewContents(TabContents* source, | 83 virtual void AddNewContents(TabContents* source, |
84 TabContents* new_contents, | 84 TabContents* new_contents, |
85 WindowOpenDisposition disposition, | 85 WindowOpenDisposition disposition, |
86 const gfx::Rect& initial_pos, | 86 const gfx::Rect& initial_pos, |
87 bool user_gesture); | 87 bool user_gesture); |
88 virtual void ActivateContents(TabContents* contents) {} | 88 virtual void ActivateContents(TabContents* contents) {} |
| 89 virtual void DeactivateContents(TabContents* contents) {} |
89 virtual void LoadingStateChanged(TabContents* source) {} | 90 virtual void LoadingStateChanged(TabContents* source) {} |
90 virtual void CloseContents(TabContents* source) {} | 91 virtual void CloseContents(TabContents* source) {} |
91 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} | 92 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} |
92 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} | 93 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} |
93 virtual void URLStarredChanged(TabContents* source, bool starred) {} | 94 virtual void URLStarredChanged(TabContents* source, bool starred) {} |
94 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} | 95 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} |
95 virtual bool ShouldEnablePreferredSizeNotifications() { return true; } | 96 virtual bool ShouldEnablePreferredSizeNotifications() { return true; } |
96 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 97 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
97 | 98 |
98 private: | 99 private: |
(...skipping 30 matching lines...) Expand all Loading... |
129 // Whether we should use an animation when showing the info-bubble. | 130 // Whether we should use an animation when showing the info-bubble. |
130 bool animate_; | 131 bool animate_; |
131 | 132 |
132 // The animation that grows the info-bubble. | 133 // The animation that grows the info-bubble. |
133 scoped_ptr<SlideAnimation> animation_; | 134 scoped_ptr<SlideAnimation> animation_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(AppLauncher); | 136 DISALLOW_COPY_AND_ASSIGN(AppLauncher); |
136 }; | 137 }; |
137 | 138 |
138 #endif // CHROME_BROWSER_VIEWS_APP_LAUNCHER_H_ | 139 #endif // CHROME_BROWSER_VIEWS_APP_LAUNCHER_H_ |
OLD | NEW |