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_IMPORTER_VIEW_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_IMPORTER_VIEW_H__ |
6 #define CHROME_BROWSER_VIEWS_IMPORTER_VIEW_H__ | 6 #define CHROME_BROWSER_VIEWS_IMPORTER_VIEW_H__ |
7 | 7 |
8 #include "chrome/browser/importer/importer.h" | 8 #include "chrome/browser/importer/importer.h" |
9 #include "chrome/views/combo_box.h" | 9 #include "chrome/views/combo_box.h" |
10 #include "chrome/views/dialog_delegate.h" | 10 #include "chrome/views/dialog_delegate.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // So now use dialog as a placeholder. | 27 // So now use dialog as a placeholder. |
28 class ImporterView : public ChromeViews::View, | 28 class ImporterView : public ChromeViews::View, |
29 public ChromeViews::DialogDelegate, | 29 public ChromeViews::DialogDelegate, |
30 public ChromeViews::ComboBox::Model, | 30 public ChromeViews::ComboBox::Model, |
31 public ImportObserver { | 31 public ImportObserver { |
32 public: | 32 public: |
33 explicit ImporterView(Profile* profile); | 33 explicit ImporterView(Profile* profile); |
34 virtual ~ImporterView(); | 34 virtual ~ImporterView(); |
35 | 35 |
36 // Overridden from ChromeViews::View. | 36 // Overridden from ChromeViews::View. |
37 virtual void GetPreferredSize(CSize *out); | 37 virtual gfx::Size GetPreferredSize(); |
38 virtual void Layout(); | 38 virtual void Layout(); |
39 | 39 |
40 // Overridden from ChromeViews::DialogDelegate: | 40 // Overridden from ChromeViews::DialogDelegate: |
41 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; | 41 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; |
42 virtual bool IsModal() const; | 42 virtual bool IsModal() const; |
43 virtual std::wstring GetWindowTitle() const; | 43 virtual std::wstring GetWindowTitle() const; |
44 virtual bool Accept(); | 44 virtual bool Accept(); |
45 virtual ChromeViews::View* GetContentsView(); | 45 virtual ChromeViews::View* GetContentsView(); |
46 | 46 |
47 // Overridden from ChromeViews::ComboBox::Model. | 47 // Overridden from ChromeViews::ComboBox::Model. |
(...skipping 21 matching lines...) Expand all Loading... |
69 | 69 |
70 scoped_refptr<ImporterHost> importer_host_; | 70 scoped_refptr<ImporterHost> importer_host_; |
71 | 71 |
72 Profile* profile_; | 72 Profile* profile_; |
73 | 73 |
74 DISALLOW_EVIL_CONSTRUCTORS(ImporterView); | 74 DISALLOW_EVIL_CONSTRUCTORS(ImporterView); |
75 }; | 75 }; |
76 | 76 |
77 #endif // CHROME_BROWSER_VIEWS_IMPORTER_VIEW_H__ | 77 #endif // CHROME_BROWSER_VIEWS_IMPORTER_VIEW_H__ |
78 | 78 |
OLD | NEW |