| OLD | NEW |
| 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 CHROMEOS_DBUS_IBUS_IBUS_LOOKUP_TABLE_H_ | 5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_LOOKUP_TABLE_H_ |
| 6 #define CHROMEOS_DBUS_IBUS_IBUS_LOOKUP_TABLE_H_ | 6 #define CHROMEOS_DBUS_IBUS_IBUS_LOOKUP_TABLE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 // Returns the orientation of lookup table. | 120 // Returns the orientation of lookup table. |
| 121 Orientation orientation() const { return orientation_; } | 121 Orientation orientation() const { return orientation_; } |
| 122 void set_orientation(Orientation orientation) { | 122 void set_orientation(Orientation orientation) { |
| 123 orientation_ = orientation; | 123 orientation_ = orientation; |
| 124 } | 124 } |
| 125 | 125 |
| 126 const std::vector<Entry>& candidates() const { return candidates_; } | 126 const std::vector<Entry>& candidates() const { return candidates_; } |
| 127 std::vector<Entry>* mutable_candidates() { return &candidates_; } | 127 std::vector<Entry>* mutable_candidates() { return &candidates_; } |
| 128 | 128 |
| 129 bool show_window_at_composition() { return show_window_at_composition_; } | 129 bool show_window_at_composition() const { |
| 130 return show_window_at_composition_; |
| 131 } |
| 130 void set_show_window_at_composition(bool show_window_at_composition) { | 132 void set_show_window_at_composition(bool show_window_at_composition) { |
| 131 show_window_at_composition_ = show_window_at_composition; | 133 show_window_at_composition_ = show_window_at_composition; |
| 132 } | 134 } |
| 133 | 135 |
| 134 private: | 136 private: |
| 135 uint32 page_size_; | 137 uint32 page_size_; |
| 136 uint32 cursor_position_; | 138 uint32 cursor_position_; |
| 137 bool is_cursor_visible_; | 139 bool is_cursor_visible_; |
| 138 Orientation orientation_; | 140 Orientation orientation_; |
| 139 std::vector<Entry> candidates_; | 141 std::vector<Entry> candidates_; |
| 140 bool show_window_at_composition_; | 142 bool show_window_at_composition_; |
| 141 | 143 |
| 142 DISALLOW_COPY_AND_ASSIGN(IBusLookupTable); | 144 DISALLOW_COPY_AND_ASSIGN(IBusLookupTable); |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 } // namespace ibus | 147 } // namespace ibus |
| 146 } // namespace chromeos | 148 } // namespace chromeos |
| 147 | 149 |
| 148 #endif // CHROMEOS_DBUS_IBUS_IBUS_LOOKUP_TABLE_H_ | 150 #endif // CHROMEOS_DBUS_IBUS_IBUS_LOOKUP_TABLE_H_ |
| OLD | NEW |