OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/status/network_dropdown_button.h" | 5 #include "chrome/browser/chromeos/status/network_dropdown_button.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
9 #include "chrome/browser/chromeos/options/network_config_view.h" | 9 #include "chrome/browser/chromeos/options/network_config_view.h" |
10 #include "chrome/browser/chromeos/status/status_area_host.h" | 10 #include "chrome/browser/chromeos/status/status_area_host.h" |
11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 animation_connecting_.Stop(); | 118 animation_connecting_.Stop(); |
119 SetIcon(SkBitmap()); | 119 SetIcon(SkBitmap()); |
120 SetText(UTF16ToWide( | 120 SetText(UTF16ToWide( |
121 l10n_util::GetStringUTF16(IDS_STATUSBAR_NO_NETWORKS_MESSAGE))); | 121 l10n_util::GetStringUTF16(IDS_STATUSBAR_NO_NETWORKS_MESSAGE))); |
122 } | 122 } |
123 | 123 |
124 SchedulePaint(); | 124 SchedulePaint(); |
125 UpdateMenu(); | 125 UpdateMenu(); |
126 } | 126 } |
127 | 127 |
| 128 // NetworkDropdownButton, NetworkMenu implementation: -------------------------- |
| 129 |
| 130 bool NetworkDropdownButton::IsBrowserMode() const { |
| 131 return browser_mode_; |
| 132 } |
| 133 |
| 134 views::MenuButton* NetworkDropdownButton::GetMenuButton() { |
| 135 return this; |
| 136 } |
| 137 |
| 138 gfx::NativeWindow NetworkDropdownButton::GetNativeWindow() const { |
| 139 return parent_window_; |
| 140 } |
| 141 |
| 142 void NetworkDropdownButton::OpenButtonOptions() { |
| 143 } |
| 144 |
| 145 bool NetworkDropdownButton::ShouldOpenButtonOptions() const { |
| 146 return false; |
| 147 } |
| 148 |
128 } // namespace chromeos | 149 } // namespace chromeos |
OLD | NEW |