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

Side by Side Diff: chrome/browser/ui/input_window_dialog_win.cc

Issue 6034002: Replace Textfield::Keystroke with views::KeyEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: key_code, ET_KEY_PRESS for WM_CHAR Created 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/ui/input_window_dialog.h" 5 #include "chrome/browser/ui/input_window_dialog.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "views/grid_layout.h" 10 #include "views/grid_layout.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual bool Accept(); 70 virtual bool Accept();
71 virtual bool Cancel(); 71 virtual bool Cancel();
72 virtual void DeleteDelegate(); 72 virtual void DeleteDelegate();
73 virtual std::wstring GetWindowTitle() const; 73 virtual std::wstring GetWindowTitle() const;
74 virtual bool IsModal() const { return true; } 74 virtual bool IsModal() const { return true; }
75 virtual views::View* GetContentsView(); 75 virtual views::View* GetContentsView();
76 76
77 // views::Textfield::Controller overrides: 77 // views::Textfield::Controller overrides:
78 virtual void ContentsChanged(views::Textfield* sender, 78 virtual void ContentsChanged(views::Textfield* sender,
79 const std::wstring& new_contents); 79 const std::wstring& new_contents);
80 virtual bool HandleKeystroke(views::Textfield*, 80 virtual bool HandleKeyEvent(views::Textfield*,
81 const views::Textfield::Keystroke&) { 81 const views::KeyEvent&) {
82 return false; 82 return false;
83 } 83 }
84 84
85 protected: 85 protected:
86 // views::View overrides: 86 // views::View overrides:
87 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, 87 virtual void ViewHierarchyChanged(bool is_add, views::View* parent,
88 views::View* child); 88 views::View* child);
89 89
90 private: 90 private:
91 // Set up dialog controls and layout. 91 // Set up dialog controls and layout.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 const std::wstring& window_title, 226 const std::wstring& window_title,
227 const std::wstring& label, 227 const std::wstring& label,
228 const std::wstring& contents, 228 const std::wstring& contents,
229 Delegate* delegate) { 229 Delegate* delegate) {
230 return new WinInputWindowDialog(parent, 230 return new WinInputWindowDialog(parent,
231 window_title, 231 window_title,
232 label, 232 label,
233 contents, 233 contents,
234 delegate); 234 delegate);
235 } 235 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.cc ('k') | chrome/browser/ui/views/autofill_profiles_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698