OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |