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

Side by Side Diff: ui/chromeos/ime/candidate_view.h

Issue 2680643002: Add old_state parameter to CustomButton::StateChanged (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ui/app_list/views/tile_item_view.cc ('k') | ui/chromeos/ime/candidate_view.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ 5 #ifndef UI_CHROMEOS_IME_CANDIDATE_VIEW_H_
6 #define UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ 6 #define UI_CHROMEOS_IME_CANDIDATE_VIEW_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/base/ime/candidate_window.h" 10 #include "ui/base/ime/candidate_window.h"
(...skipping 23 matching lines...) Expand all
34 // Sets infolist icon. 34 // Sets infolist icon.
35 void SetInfolistIcon(bool enable); 35 void SetInfolistIcon(bool enable);
36 36
37 void SetHighlighted(bool highlighted); 37 void SetHighlighted(bool highlighted);
38 38
39 private: 39 private:
40 friend class CandidateWindowViewTest; 40 friend class CandidateWindowViewTest;
41 FRIEND_TEST_ALL_PREFIXES(CandidateWindowViewTest, ShortcutSettingTest); 41 FRIEND_TEST_ALL_PREFIXES(CandidateWindowViewTest, ShortcutSettingTest);
42 42
43 // Overridden from views::CustomButton: 43 // Overridden from views::CustomButton:
44 void StateChanged() override; 44 void StateChanged(ButtonState old_state) override;
45 45
46 // Overridden from View: 46 // Overridden from View:
47 const char* GetClassName() const override; 47 const char* GetClassName() const override;
48 bool OnMouseDragged(const ui::MouseEvent& event) override; 48 bool OnMouseDragged(const ui::MouseEvent& event) override;
49 void Layout() override; 49 void Layout() override;
50 gfx::Size GetPreferredSize() const override; 50 gfx::Size GetPreferredSize() const override;
51 51
52 // The orientation of the candidate view. 52 // The orientation of the candidate view.
53 ui::CandidateWindow::Orientation orientation_; 53 ui::CandidateWindow::Orientation orientation_;
54 54
(...skipping 13 matching lines...) Expand all
68 int candidate_width_; 68 int candidate_width_;
69 bool highlighted_; 69 bool highlighted_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(CandidateView); 71 DISALLOW_COPY_AND_ASSIGN(CandidateView);
72 }; 72 };
73 73
74 } // namespace ime 74 } // namespace ime
75 } // namespace ui 75 } // namespace ui
76 76
77 #endif // UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ 77 #endif // UI_CHROMEOS_IME_CANDIDATE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/tile_item_view.cc ('k') | ui/chromeos/ime/candidate_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698