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

Unified Diff: ui/chromeos/ime/candidate_view.cc

Issue 866403006: Set class names for ime's view classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/chromeos/ime/candidate_view.h ('k') | ui/chromeos/ime/candidate_window_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/ime/candidate_view.cc
diff --git a/ui/chromeos/ime/candidate_view.cc b/ui/chromeos/ime/candidate_view.cc
index 96b1de6c60ceae0a3e9ca15dd85c631c134c4ce0..db90b6fc89ea89a5aadaf997b8dd3d0e12a9fc34 100644
--- a/ui/chromeos/ime/candidate_view.cc
+++ b/ui/chromeos/ime/candidate_view.cc
@@ -27,6 +27,7 @@ class VerticalCandidateLabel : public views::Label {
private:
~VerticalCandidateLabel() override {}
+ // views::Label:
// Returns the preferred size, but guarantees that the width has at
// least kMinCandidateLabelWidth pixels.
gfx::Size GetPreferredSize() const override {
@@ -36,6 +37,8 @@ class VerticalCandidateLabel : public views::Label {
return size;
}
+ const char* GetClassName() const override { return "VerticalCandidateLabel"; }
+
DISALLOW_COPY_AND_ASSIGN(VerticalCandidateLabel);
};
@@ -227,6 +230,10 @@ void CandidateView::StateChanged() {
SetHighlighted(true);
}
+const char* CandidateView::GetClassName() const {
+ return "CandidateView";
+}
+
bool CandidateView::OnMouseDragged(const ui::MouseEvent& event) {
if (!HitTestPoint(event.location())) {
// Moves the drag target to the sibling view.
« no previous file with comments | « ui/chromeos/ime/candidate_view.h ('k') | ui/chromeos/ime/candidate_window_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698