Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1200)

Side by Side Diff: chrome/browser/chromeos/status/input_method_menu.cc

Issue 6708029: Lands http://codereview.chromium.org/2928005/ for Dill: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated with changes. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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/input_method_menu.h" 5 #include "chrome/browser/chromeos/status/input_method_menu.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string_split.h" 10 #include "base/string_split.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 215
216 return kRadioGroupNone; 216 return kRadioGroupNone;
217 } 217 }
218 218
219 bool InputMethodMenu::HasIcons() const { 219 bool InputMethodMenu::HasIcons() const {
220 // We don't support icons on Chrome OS. 220 // We don't support icons on Chrome OS.
221 return false; 221 return false;
222 } 222 }
223 223
224 bool InputMethodMenu::GetIconAt(int index, SkBitmap* icon) const { 224 bool InputMethodMenu::GetIconAt(int index, SkBitmap* icon) {
225 return false; 225 return false;
226 } 226 }
227 227
228 ui::ButtonMenuItemModel* InputMethodMenu::GetButtonMenuItemAt( 228 ui::ButtonMenuItemModel* InputMethodMenu::GetButtonMenuItemAt(
229 int index) const { 229 int index) const {
230 return NULL; 230 return NULL;
231 } 231 }
232 232
233 bool InputMethodMenu::IsEnabledAt(int index) const { 233 bool InputMethodMenu::IsEnabledAt(int index) const {
234 // Just return true so all input method names and input method propertie names 234 // Just return true so all input method names and input method propertie names
235 // could be clicked. 235 // could be clicked.
236 return true; 236 return true;
237 } 237 }
238 238
239 ui::MenuModel* InputMethodMenu::GetSubmenuModelAt(int index) const { 239 ui::MenuModel* InputMethodMenu::GetSubmenuModelAt(int index) const {
240 // We don't use nested menus. 240 // We don't use nested menus.
241 return NULL; 241 return NULL;
242 } 242 }
243 243
244 void InputMethodMenu::HighlightChangedTo(int index) { 244 void InputMethodMenu::HighlightChangedTo(int index) {
245 // Views for Chromium OS does not support this interface yet. 245 // Views for Chromium OS does not support this interface yet.
246 } 246 }
247 247
248 void InputMethodMenu::MenuWillShow() { 248 void InputMethodMenu::MenuWillShow() {
249 // Views for Chromium OS does not support this interface yet. 249 // Views for Chromium OS does not support this interface yet.
250 } 250 }
251 251
252 void InputMethodMenu::SetMenuModelDelegate(ui::MenuModelDelegate* delegate) {
253 // Not needed for current usage.
254 }
255
252 int InputMethodMenu::GetItemCount() const { 256 int InputMethodMenu::GetItemCount() const {
253 if (!model_.get()) { 257 if (!model_.get()) {
254 // Model is not constructed yet. This means that 258 // Model is not constructed yet. This means that
255 // InputMethodMenu is being constructed. Return zero. 259 // InputMethodMenu is being constructed. Return zero.
256 return 0; 260 return 0;
257 } 261 }
258 return model_->GetItemCount(); 262 return model_->GetItemCount();
259 } 263 }
260 264
261 ui::MenuModel::ItemType InputMethodMenu::GetTypeAt(int index) const { 265 ui::MenuModel::ItemType InputMethodMenu::GetTypeAt(int index) const {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 CrosLibrary::Get()->GetInputMethodLibrary()->RemoveObserver(this); 627 CrosLibrary::Get()->GetInputMethodLibrary()->RemoveObserver(this);
624 } 628 }
625 } 629 }
626 630
627 void InputMethodMenu::SetMinimumWidth(int width) { 631 void InputMethodMenu::SetMinimumWidth(int width) {
628 // On the OOBE network selection screen, fixed width menu would be preferable. 632 // On the OOBE network selection screen, fixed width menu would be preferable.
629 minimum_input_method_menu_width_ = width; 633 minimum_input_method_menu_width_ = width;
630 } 634 }
631 635
632 } // namespace chromeos 636 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu.h ('k') | chrome/browser/chromeos/status/network_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698