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