summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/edit_keyword_controller.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:47:23 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:47:23 +0000
commitba96e33fd8a5b9610de51f6d3e15e6c469674dc2 (patch)
treeda17919af6b99801762e4d7618e92e53dc13a9f3 /chrome/browser/views/edit_keyword_controller.h
parent44c1d4872df77d6ac3bd064a7634078c443a332f (diff)
downloadchromium_src-ba96e33fd8a5b9610de51f6d3e15e6c469674dc2.zip
chromium_src-ba96e33fd8a5b9610de51f6d3e15e6c469674dc2.tar.gz
chromium_src-ba96e33fd8a5b9610de51f6d3e15e6c469674dc2.tar.bz2
Move text_field.cc and rename the class to Textfield in preparation for porting.
BUG=none TEST=none Review URL: http://codereview.chromium.org/115825 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/edit_keyword_controller.h')
-rw-r--r--chrome/browser/views/edit_keyword_controller.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/views/edit_keyword_controller.h b/chrome/browser/views/edit_keyword_controller.h
index baf7efd..432ed14 100644
--- a/chrome/browser/views/edit_keyword_controller.h
+++ b/chrome/browser/views/edit_keyword_controller.h
@@ -12,7 +12,7 @@
#include <windows.h>
-#include "views/controls/text_field.h"
+#include "views/controls/textfield/textfield.h"
#include "views/window/dialog_delegate.h"
namespace views {
@@ -26,7 +26,7 @@ class Profile;
class TemplateURL;
class TemplateURLModel;
-class EditKeywordController : public views::TextField::Controller,
+class EditKeywordController : public views::Textfield::Controller,
public views::DialogDelegate {
public:
// The template_url and/or keyword_editor_view may be NULL.
@@ -51,13 +51,13 @@ class EditKeywordController : public views::TextField::Controller,
virtual bool Accept();
virtual views::View* GetContentsView();
- // views::TextField::Controller overrides. Updates whether the user can
+ // views::Textfield::Controller overrides. Updates whether the user can
// accept the dialog as well as updating image views showing whether value is
// valid.
- virtual void ContentsChanged(views::TextField* sender,
+ virtual void ContentsChanged(views::Textfield* sender,
const std::wstring& new_contents);
- virtual bool HandleKeystroke(views::TextField* sender,
- const views::TextField::Keystroke& key);
+ virtual bool HandleKeystroke(views::Textfield* sender,
+ const views::Textfield::Keystroke& key);
private:
void Init();
@@ -66,8 +66,8 @@ class EditKeywordController : public views::TextField::Controller,
views::Label* CreateLabel(int message_id);
// Creates a text field with the specified text. If |lowercase| is true, the
- // textfield is configured to map all input to lower case.
- views::TextField* CreateTextField(const std::wstring& text, bool lowercase);
+ // Textfield is configured to map all input to lower case.
+ views::Textfield* CreateTextfield(const std::wstring& text, bool lowercase);
// Returns true if the currently input URL is valid. The URL is valid if it
// contains no search terms and is a valid url, or if it contains a search
@@ -117,9 +117,9 @@ class EditKeywordController : public views::TextField::Controller,
Profile* profile_;
// Text fields.
- views::TextField* title_tf_;
- views::TextField* keyword_tf_;
- views::TextField* url_tf_;
+ views::Textfield* title_tf_;
+ views::Textfield* keyword_tf_;
+ views::Textfield* url_tf_;
// Shows error images.
views::ImageView* title_iv_;