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

Side by Side Diff: chrome/browser/ui/views/find_bar_view.h

Issue 135863002: Reland Merge NativeTextfieldViews into views::Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle Ctrl-Shift-Delete and Backspace on Linux, like on ChromeOS. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.h ('k') | chrome/browser/ui/views/find_bar_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 (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_UI_VIEWS_FIND_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/ui/views/dropdown_bar_view.h" 10 #include "chrome/browser/ui/views/dropdown_bar_view.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Clears the current Match Count value in the Find text box. 63 // Clears the current Match Count value in the Find text box.
64 void ClearMatchCount(); 64 void ClearMatchCount();
65 65
66 // Claims focus for the text field and selects its contents. 66 // Claims focus for the text field and selects its contents.
67 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; 67 virtual void SetFocusAndSelection(bool select_all) OVERRIDE;
68 68
69 // views::View: 69 // views::View:
70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
71 virtual void Layout() OVERRIDE; 71 virtual void Layout() OVERRIDE;
72 virtual gfx::Size GetPreferredSize() OVERRIDE; 72 virtual gfx::Size GetPreferredSize() OVERRIDE;
73 virtual void ViewHierarchyChanged(
74 const ViewHierarchyChangedDetails& details) OVERRIDE;
75 73
76 // views::ButtonListener: 74 // views::ButtonListener:
77 virtual void ButtonPressed(views::Button* sender, 75 virtual void ButtonPressed(views::Button* sender,
78 const ui::Event& event) OVERRIDE; 76 const ui::Event& event) OVERRIDE;
79 77
80 // views::TextfieldController: 78 // views::TextfieldController:
81 virtual bool HandleKeyEvent(views::Textfield* sender, 79 virtual bool HandleKeyEvent(views::Textfield* sender,
82 const ui::KeyEvent& key_event) OVERRIDE; 80 const ui::KeyEvent& key_event) OVERRIDE;
83 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; 81 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE;
84 virtual void OnAfterPaste() OVERRIDE; 82 virtual void OnAfterPaste() OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // box to provide the Chrome look to the edge of the text box. 134 // box to provide the Chrome look to the edge of the text box.
137 const gfx::ImageSkia* text_box_background_; 135 const gfx::ImageSkia* text_box_background_;
138 136
139 // The rounded edge on the left side of the Find text box. 137 // The rounded edge on the left side of the Find text box.
140 const gfx::ImageSkia* text_box_background_left_; 138 const gfx::ImageSkia* text_box_background_left_;
141 139
142 DISALLOW_COPY_AND_ASSIGN(FindBarView); 140 DISALLOW_COPY_AND_ASSIGN(FindBarView);
143 }; 141 };
144 142
145 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ 143 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.h ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698