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

Side by Side Diff: chrome/browser/chromeos/input_method/candidate_view.h

Issue 11783053: Clean Up: Remove ibus namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/candidate_window_controller_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_INPUT_METHOD_CANDIDATE_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "chromeos/dbus/ibus/ibus_lookup_table.h" 9 #include "chromeos/dbus/ibus/ibus_lookup_table.h"
10 #include "ui/views/controls/label.h" 10 #include "ui/views/controls/label.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 namespace input_method { 14 namespace input_method {
15 15
16 class CandidateWindowView; 16 class CandidateWindowView;
17 17
18 // CandidateView renderes a row of a candidate. 18 // CandidateView renderes a row of a candidate.
19 class CandidateView : public views::View { 19 class CandidateView : public views::View {
20 public: 20 public:
21 CandidateView(CandidateWindowView* parent_candidate_window, 21 CandidateView(CandidateWindowView* parent_candidate_window,
22 int index_in_page, 22 int index_in_page,
23 ibus::IBusLookupTable::Orientation orientation); 23 IBusLookupTable::Orientation orientation);
24 virtual ~CandidateView() {} 24 virtual ~CandidateView() {}
25 // Initializes the candidate view with the given column widths. 25 // Initializes the candidate view with the given column widths.
26 // A width of 0 means that the column is resizable. 26 // A width of 0 means that the column is resizable.
27 void Init(int shortcut_column_width, 27 void Init(int shortcut_column_width,
28 int candidate_column_width, 28 int candidate_column_width,
29 int annotation_column_width, 29 int annotation_column_width,
30 int column_height); 30 int column_height);
31 31
32 // Sets candidate text to the given text. 32 // Sets candidate text to the given text.
33 void SetCandidateText(const string16& text); 33 void SetCandidateText(const string16& text);
(...skipping 29 matching lines...) Expand all
63 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 63 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
64 64
65 // Notifies labels of their new background colors. Called whenever the view's 65 // Notifies labels of their new background colors. Called whenever the view's
66 // background color changes. 66 // background color changes.
67 void UpdateLabelBackgroundColors(); 67 void UpdateLabelBackgroundColors();
68 68
69 // Zero-origin index in the current page. 69 // Zero-origin index in the current page.
70 int index_in_page_; 70 int index_in_page_;
71 71
72 // The orientation of the candidate view. 72 // The orientation of the candidate view.
73 ibus::IBusLookupTable::Orientation orientation_; 73 IBusLookupTable::Orientation orientation_;
74 74
75 // The parent candidate window that contains this view. 75 // The parent candidate window that contains this view.
76 CandidateWindowView* parent_candidate_window_; 76 CandidateWindowView* parent_candidate_window_;
77 77
78 // Views created in the class will be part of tree of |this|, so these 78 // Views created in the class will be part of tree of |this|, so these
79 // child views will be deleted when |this| is deleted. 79 // child views will be deleted when |this| is deleted.
80 80
81 // The shortcut label renders shortcut numbers like 1, 2, and 3. 81 // The shortcut label renders shortcut numbers like 1, 2, and 3.
82 views::Label* shortcut_label_; 82 views::Label* shortcut_label_;
83 // The candidate label renders candidates. 83 // The candidate label renders candidates.
84 views::Label* candidate_label_; 84 views::Label* candidate_label_;
85 // The annotation label renders annotations. 85 // The annotation label renders annotations.
86 views::Label* annotation_label_; 86 views::Label* annotation_label_;
87 87
88 // The infolist icon. 88 // The infolist icon.
89 views::View* infolist_icon_; 89 views::View* infolist_icon_;
90 bool infolist_icon_enabled_; 90 bool infolist_icon_enabled_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(CandidateView); 92 DISALLOW_COPY_AND_ASSIGN(CandidateView);
93 }; 93 };
94 94
95 } // namespace input_method 95 } // namespace input_method
96 } // namespace chromeos 96 } // namespace chromeos
97 97
98 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/candidate_window_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698