| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEWS_SHELF_ITEM_DIALOG_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H_ |
| 6 #define CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H__ | 6 #define CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/cancelable_request.h" | 8 #include "chrome/browser/cancelable_request.h" |
| 9 #include "chrome/browser/history/history.h" | 9 #include "chrome/browser/history/history.h" |
| 10 #include "chrome/views/controls/button/native_button.h" | 10 #include "chrome/views/controls/button/native_button.h" |
| 11 #include "chrome/views/controls/table/table_view.h" | 11 #include "chrome/views/controls/table/table_view.h" |
| 12 #include "chrome/views/controls/text_field.h" | 12 #include "chrome/views/controls/text_field.h" |
| 13 #include "chrome/views/view.h" | 13 #include "chrome/views/view.h" |
| 14 #include "chrome/views/window/dialog_delegate.h" | 14 #include "chrome/views/window/dialog_delegate.h" |
| 15 #include "chrome/views/window/window.h" | 15 #include "chrome/views/window/window.h" |
| 16 | 16 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual std::wstring GetWindowTitle() const; | 60 virtual std::wstring GetWindowTitle() const; |
| 61 virtual bool IsModal() const; | 61 virtual bool IsModal() const; |
| 62 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; | 62 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; |
| 63 virtual bool Accept(); | 63 virtual bool Accept(); |
| 64 virtual bool IsDialogButtonEnabled(DialogButton button) const; | 64 virtual bool IsDialogButtonEnabled(DialogButton button) const; |
| 65 virtual views::View* GetContentsView(); | 65 virtual views::View* GetContentsView(); |
| 66 | 66 |
| 67 // TextField::Controller. | 67 // TextField::Controller. |
| 68 virtual void ContentsChanged(views::TextField* sender, | 68 virtual void ContentsChanged(views::TextField* sender, |
| 69 const std::wstring& new_contents); | 69 const std::wstring& new_contents); |
| 70 virtual void HandleKeystroke(views::TextField* sender, | 70 virtual bool HandleKeystroke(views::TextField* sender, |
| 71 UINT message, TCHAR key, UINT repeat_count, | 71 UINT message, TCHAR key, UINT repeat_count, |
| 72 UINT flags) {} | 72 UINT flags) { return false; } |
| 73 | 73 |
| 74 // Overridden from View. | 74 // Overridden from View. |
| 75 virtual gfx::Size GetPreferredSize(); | 75 virtual gfx::Size GetPreferredSize(); |
| 76 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 76 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
| 77 | 77 |
| 78 // TableViewObserver. | 78 // TableViewObserver. |
| 79 virtual void OnSelectionChanged(); | 79 virtual void OnSelectionChanged(); |
| 80 virtual void OnDoubleClick(); | 80 virtual void OnDoubleClick(); |
| 81 | 81 |
| 82 private: | 82 private: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 113 | 113 |
| 114 // Handle of the title request we are expecting. | 114 // Handle of the title request we are expecting. |
| 115 CancelableRequestProvider::Handle expected_title_handle_; | 115 CancelableRequestProvider::Handle expected_title_handle_; |
| 116 | 116 |
| 117 // The consumer object for the history database. | 117 // The consumer object for the history database. |
| 118 CancelableRequestConsumer history_consumer_; | 118 CancelableRequestConsumer history_consumer_; |
| 119 | 119 |
| 120 // The delegate. | 120 // The delegate. |
| 121 ShelfItemDialogDelegate* delegate_; | 121 ShelfItemDialogDelegate* delegate_; |
| 122 | 122 |
| 123 DISALLOW_EVIL_CONSTRUCTORS(ShelfItemDialog); | 123 DISALLOW_COPY_AND_ASSIGN(ShelfItemDialog); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 #endif // CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H__ | 126 #endif // CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H_ |
| OLD | NEW |