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

Side by Side Diff: chrome/browser/chromeos/login/captcha_view.h

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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/captcha_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) 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_CAPTCHA_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_CAPTCHA_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CAPTCHA_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CAPTCHA_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // views::WindowDelegate overrides: 50 // views::WindowDelegate overrides:
51 virtual bool IsModal() const { return true; } 51 virtual bool IsModal() const { return true; }
52 virtual views::View* GetContentsView() { return this; } 52 virtual views::View* GetContentsView() { return this; }
53 53
54 // views::View overrides: 54 // views::View overrides:
55 virtual std::wstring GetWindowTitle() const; 55 virtual std::wstring GetWindowTitle() const;
56 56
57 // views::Textfield::Controller implementation: 57 // views::Textfield::Controller implementation:
58 virtual void ContentsChanged(views::Textfield* sender, 58 virtual void ContentsChanged(views::Textfield* sender,
59 const string16& new_contents) {} 59 const string16& new_contents) {}
60 virtual bool HandleKeystroke(views::Textfield* sender, 60 virtual bool HandleKeyEvent(views::Textfield* sender,
61 const views::Textfield::Keystroke& keystroke); 61 const views::KeyEvent& key_event);
62 62
63 // Overriden from ImageDownloader::Delegate: 63 // Overriden from ImageDownloader::Delegate:
64 virtual void OnImageDecoded(const SkBitmap& decoded_image); 64 virtual void OnImageDecoded(const SkBitmap& decoded_image);
65 65
66 // Overridden from views::ButtonListener. 66 // Overridden from views::ButtonListener.
67 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 67 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
68 68
69 // Initializes UI. 69 // Initializes UI.
70 void Init(); 70 void Init();
71 71
(...skipping 24 matching lines...) Expand all
96 96
97 // Used in standalone mode. 97 // Used in standalone mode.
98 views::TextButton* ok_button_; 98 views::TextButton* ok_button_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(CaptchaView); 100 DISALLOW_COPY_AND_ASSIGN(CaptchaView);
101 }; 101 };
102 102
103 } // namespace chromeos 103 } // namespace chromeos
104 104
105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CAPTCHA_VIEW_H_ 105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CAPTCHA_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/captcha_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698