| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_IMPORTING_PROGRESS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_IMPORTING_PROGRESS_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_IMPORTING_PROGRESS_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_IMPORTING_PROGRESS_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/importer/importer.h" | 8 #include "chrome/browser/importer/importer.h" |
| 9 #include "chrome/views/dialog_delegate.h" | 9 #include "chrome/views/dialog_delegate.h" |
| 10 #include "chrome/views/view.h" | 10 #include "chrome/views/view.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Overridden from ChromeViews::DialogDelegate: | 36 // Overridden from ChromeViews::DialogDelegate: |
| 37 virtual int GetDialogButtons() const; | 37 virtual int GetDialogButtons() const; |
| 38 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; | 38 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; |
| 39 virtual bool IsModal() const; | 39 virtual bool IsModal() const; |
| 40 virtual std::wstring GetWindowTitle() const; | 40 virtual std::wstring GetWindowTitle() const; |
| 41 virtual bool Cancel(); | 41 virtual bool Cancel(); |
| 42 virtual ChromeViews::View* GetContentsView(); | 42 virtual ChromeViews::View* GetContentsView(); |
| 43 | 43 |
| 44 // Overridden from ChromeViews::View: | 44 // Overridden from ChromeViews::View: |
| 45 virtual void GetPreferredSize(CSize *out); | 45 virtual gfx::Size GetPreferredSize(); |
| 46 virtual void ViewHierarchyChanged(bool is_add, | 46 virtual void ViewHierarchyChanged(bool is_add, |
| 47 ChromeViews::View* parent, | 47 ChromeViews::View* parent, |
| 48 ChromeViews::View* child); | 48 ChromeViews::View* child); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Set up the control layout within this dialog. | 51 // Set up the control layout within this dialog. |
| 52 void InitControlLayout(); | 52 void InitControlLayout(); |
| 53 | 53 |
| 54 // Various dialog controls. | 54 // Various dialog controls. |
| 55 scoped_ptr<ChromeViews::CheckmarkThrobber> state_bookmarks_; | 55 scoped_ptr<ChromeViews::CheckmarkThrobber> state_bookmarks_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 77 int16 items_; | 77 int16 items_; |
| 78 | 78 |
| 79 // True if the import operation is in progress. | 79 // True if the import operation is in progress. |
| 80 bool importing_; | 80 bool importing_; |
| 81 | 81 |
| 82 DISALLOW_EVIL_CONSTRUCTORS(ImportingProgressView); | 82 DISALLOW_EVIL_CONSTRUCTORS(ImportingProgressView); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 #endif // CHROME_BROWSER_VIEWS_IMPORTING_PROGRESS_VIEW_H_ | 85 #endif // CHROME_BROWSER_VIEWS_IMPORTING_PROGRESS_VIEW_H_ |
| 86 | 86 |
| OLD | NEW |