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) {} | |
90 virtual void LoadingStateChanged(TabContents* source) {} | 89 virtual void LoadingStateChanged(TabContents* source) {} |
91 virtual void CloseContents(TabContents* source) {} | 90 virtual void CloseContents(TabContents* source) {} |
92 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} | 91 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} |
93 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} | 92 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} |
94 virtual void URLStarredChanged(TabContents* source, bool starred) {} | 93 virtual void URLStarredChanged(TabContents* source, bool starred) {} |
95 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} | 94 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} |
96 virtual bool ShouldEnablePreferredSizeNotifications() { return true; } | 95 virtual bool ShouldEnablePreferredSizeNotifications() { return true; } |
97 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 96 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
98 | 97 |
99 private: | 98 private: |
(...skipping 30 matching lines...) Expand all Loading... |
130 // Whether we should use an animation when showing the info-bubble. | 129 // Whether we should use an animation when showing the info-bubble. |
131 bool animate_; | 130 bool animate_; |
132 | 131 |
133 // The animation that grows the info-bubble. | 132 // The animation that grows the info-bubble. |
134 scoped_ptr<SlideAnimation> animation_; | 133 scoped_ptr<SlideAnimation> animation_; |
135 | 134 |
136 DISALLOW_COPY_AND_ASSIGN(AppLauncher); | 135 DISALLOW_COPY_AND_ASSIGN(AppLauncher); |
137 }; | 136 }; |
138 | 137 |
139 #endif // CHROME_BROWSER_VIEWS_APP_LAUNCHER_H_ | 138 #endif // CHROME_BROWSER_VIEWS_APP_LAUNCHER_H_ |
OLD | NEW |