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/go_button.h" | 5 #include "chrome/browser/views/go_button.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
8 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_dll_resource.h" |
9 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
10 #include "chrome/browser/views/event_utils.h" | 11 #include "chrome/browser/views/event_utils.h" |
11 #include "chrome/browser/views/location_bar_view.h" | 12 #include "chrome/browser/views/location_bar_view.h" |
12 #include "chrome/common/l10n_util.h" | |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 | 14 |
15 //////////////////////////////////////////////////////////////////////////////// | 15 //////////////////////////////////////////////////////////////////////////////// |
16 // GoButton, public: | 16 // GoButton, public: |
17 | 17 |
18 GoButton::GoButton(LocationBarView* location_bar, Browser* browser) | 18 GoButton::GoButton(LocationBarView* location_bar, Browser* browser) |
19 : ToggleImageButton(this), | 19 : ToggleImageButton(this), |
20 location_bar_(location_bar), | 20 location_bar_(location_bar), |
21 browser_(browser), | 21 browser_(browser), |
22 intended_mode_(MODE_GO), | 22 intended_mode_(MODE_GO), |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 return true; | 118 return true; |
119 } | 119 } |
120 | 120 |
121 //////////////////////////////////////////////////////////////////////////////// | 121 //////////////////////////////////////////////////////////////////////////////// |
122 // GoButton, private: | 122 // GoButton, private: |
123 | 123 |
124 void GoButton::OnButtonTimer() { | 124 void GoButton::OnButtonTimer() { |
125 stop_timer_.RevokeAll(); | 125 stop_timer_.RevokeAll(); |
126 ChangeMode(intended_mode_, true); | 126 ChangeMode(intended_mode_, true); |
127 } | 127 } |
OLD | NEW |