OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/views/toolbar_star_toggle.h" | 5 #include "chrome/browser/views/toolbar_star_toggle.h" |
6 | 6 |
7 #include "chrome/app/theme/theme_resources.h" | 7 #include "grit/theme_resources.h" |
8 #include "chrome/browser/bookmarks/bookmark_model.h" | 8 #include "chrome/browser/bookmarks/bookmark_model.h" |
9 #include "chrome/browser/browser.h" | 9 #include "chrome/browser/browser.h" |
10 #include "chrome/browser/views/bookmark_bubble_view.h" | 10 #include "chrome/browser/views/bookmark_bubble_view.h" |
11 #include "chrome/browser/views/toolbar_view.h" | 11 #include "chrome/browser/views/toolbar_view.h" |
12 #include "chrome/common/resource_bundle.h" | 12 #include "chrome/common/resource_bundle.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 | 14 |
15 using base::TimeTicks; | 15 using base::TimeTicks; |
16 | 16 |
17 // The amount of time (in milliseconds) between when the bubble closes and when | 17 // The amount of time (in milliseconds) between when the bubble closes and when |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void ToolbarStarToggle::InfoBubbleClosing(InfoBubble* info_bubble, | 86 void ToolbarStarToggle::InfoBubbleClosing(InfoBubble* info_bubble, |
87 bool closed_by_escape) { | 87 bool closed_by_escape) { |
88 is_bubble_showing_ = false; | 88 is_bubble_showing_ = false; |
89 SchedulePaint(); | 89 SchedulePaint(); |
90 bubble_closed_time_ = TimeTicks::Now(); | 90 bubble_closed_time_ = TimeTicks::Now(); |
91 } | 91 } |
92 | 92 |
93 bool ToolbarStarToggle::CloseOnEscape() { | 93 bool ToolbarStarToggle::CloseOnEscape() { |
94 return true; | 94 return true; |
95 } | 95 } |
OLD | NEW |