| 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_UI_VIEWS_URL_PICKER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "views/controls/button/native_button.h" | 9 #include "views/controls/button/native_button.h" |
| 10 #include "views/controls/table/table_view_observer.h" | 10 #include "views/controls/table/table_view_observer.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 MessageBoxFlags::DialogButton button) const; | 62 MessageBoxFlags::DialogButton button) const; |
| 63 virtual bool Accept(); | 63 virtual bool Accept(); |
| 64 virtual int GetDefaultDialogButton() const; | 64 virtual int GetDefaultDialogButton() const; |
| 65 virtual bool IsDialogButtonEnabled( | 65 virtual bool IsDialogButtonEnabled( |
| 66 MessageBoxFlags::DialogButton button) const; | 66 MessageBoxFlags::DialogButton button) const; |
| 67 virtual views::View* GetContentsView(); | 67 virtual views::View* GetContentsView(); |
| 68 | 68 |
| 69 // TextField::Controller. | 69 // TextField::Controller. |
| 70 virtual void ContentsChanged(views::Textfield* sender, | 70 virtual void ContentsChanged(views::Textfield* sender, |
| 71 const std::wstring& new_contents); | 71 const std::wstring& new_contents); |
| 72 virtual bool HandleKeystroke(views::Textfield* sender, | 72 virtual bool HandleKeyEvent(views::Textfield* sender, |
| 73 const views::Textfield::Keystroke& key) { | 73 const views::KeyEvent& key_event) { |
| 74 return false; | 74 return false; |
| 75 } | 75 } |
| 76 | 76 |
| 77 // Overridden from View. | 77 // Overridden from View. |
| 78 virtual gfx::Size GetPreferredSize(); | 78 virtual gfx::Size GetPreferredSize(); |
| 79 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 79 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
| 80 | 80 |
| 81 // TableViewObserver. | 81 // TableViewObserver. |
| 82 virtual void OnSelectionChanged(); | 82 virtual void OnSelectionChanged(); |
| 83 virtual void OnDoubleClick(); | 83 virtual void OnDoubleClick(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 101 // The table of visited urls. | 101 // The table of visited urls. |
| 102 views::TableView* url_table_; | 102 views::TableView* url_table_; |
| 103 | 103 |
| 104 // The delegate. | 104 // The delegate. |
| 105 UrlPickerDelegate* delegate_; | 105 UrlPickerDelegate* delegate_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(UrlPicker); | 107 DISALLOW_COPY_AND_ASSIGN(UrlPicker); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 #endif // CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_ | 110 #endif // CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_ |
| OLD | NEW |