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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 11 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
12 #include "chrome/browser/chromeos/status/status_area_host.h" 12 #include "chrome/browser/chromeos/status/status_area_host.h"
13 #include "chrome/browser/prefs/pref_member.h" 13 #include "chrome/browser/prefs/pref_member.h"
14 #include "content/common/content_notification_types.h"
14 #include "content/common/notification_observer.h" 15 #include "content/common/notification_observer.h"
15 #include "content/common/notification_registrar.h" 16 #include "content/common/notification_registrar.h"
16 #include "content/common/notification_type.h"
17 #include "ui/base/models/menu_model.h" 17 #include "ui/base/models/menu_model.h"
18 #include "views/controls/menu/menu_item_view.h" 18 #include "views/controls/menu/menu_item_view.h"
19 #include "views/controls/menu/view_menu_delegate.h" 19 #include "views/controls/menu/view_menu_delegate.h"
20 20
21 class PrefService; 21 class PrefService;
22 class SkBitmap; 22 class SkBitmap;
23 23
24 namespace ui { 24 namespace ui {
25 class SimpleMenuModel; 25 class SimpleMenuModel;
26 } // namespace ui 26 } // namespace ui
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void PreferenceUpdateNeeded( 82 virtual void PreferenceUpdateNeeded(
83 input_method::InputMethodManager* manager, 83 input_method::InputMethodManager* manager,
84 const input_method::InputMethodDescriptor& previous_input_method, 84 const input_method::InputMethodDescriptor& previous_input_method,
85 const input_method::InputMethodDescriptor& current_input_method); 85 const input_method::InputMethodDescriptor& current_input_method);
86 virtual void PropertyListChanged( 86 virtual void PropertyListChanged(
87 input_method::InputMethodManager* manager, 87 input_method::InputMethodManager* manager,
88 const input_method::ImePropertyList& current_ime_properties); 88 const input_method::ImePropertyList& current_ime_properties);
89 virtual void FirstObserverIsAdded(input_method::InputMethodManager* manager); 89 virtual void FirstObserverIsAdded(input_method::InputMethodManager* manager);
90 90
91 // NotificationObserver implementation. 91 // NotificationObserver implementation.
92 virtual void Observe(NotificationType type, 92 virtual void Observe(int type,
93 const NotificationSource& source, 93 const NotificationSource& source,
94 const NotificationDetails& details); 94 const NotificationDetails& details);
95 95
96 // Specify menu alignment (default TOPRIGHT). 96 // Specify menu alignment (default TOPRIGHT).
97 void set_menu_alignment(views::MenuItemView::AnchorPosition menu_alignment) { 97 void set_menu_alignment(views::MenuItemView::AnchorPosition menu_alignment) {
98 menu_alignment_ = menu_alignment; 98 menu_alignment_ = menu_alignment;
99 } 99 }
100 100
101 // Sets the minimum width of the dropdown menu. 101 // Sets the minimum width of the dropdown menu.
102 void SetMinimumWidth(int width); 102 void SetMinimumWidth(int width);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // true if the menu is for a dialog in OOBE screen. In the dialog, we don't 188 // true if the menu is for a dialog in OOBE screen. In the dialog, we don't
189 // use radio buttons. 189 // use radio buttons.
190 const bool for_out_of_box_experience_dialog_; 190 const bool for_out_of_box_experience_dialog_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(InputMethodMenu); 192 DISALLOW_COPY_AND_ASSIGN(InputMethodMenu);
193 }; 193 };
194 194
195 } // namespace chromeos 195 } // namespace chromeos
196 196
197 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_ 197 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/clock_menu_button.cc ('k') | chrome/browser/chromeos/status/input_method_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698