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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/combobox_model.h" | 9 #include "app/combobox_model.h" |
| 10 #include "base/string16.h" |
10 #include "chrome/browser/importer/importer.h" | 11 #include "chrome/browser/importer/importer.h" |
11 #include "views/controls/button/native_button.h" | 12 #include "views/controls/button/native_button.h" |
12 #include "views/controls/combobox/combobox.h" | 13 #include "views/controls/combobox/combobox.h" |
13 #include "views/view.h" | 14 #include "views/view.h" |
14 #include "views/window/dialog_delegate.h" | 15 #include "views/window/dialog_delegate.h" |
15 | 16 |
16 namespace views { | 17 namespace views { |
17 class Checkbox; | 18 class Checkbox; |
18 class Label; | 19 class Label; |
19 class Window; | 20 class Window; |
(...skipping 29 matching lines...) Expand all Loading... |
49 virtual bool IsModal() const; | 50 virtual bool IsModal() const; |
50 virtual std::wstring GetWindowTitle() const; | 51 virtual std::wstring GetWindowTitle() const; |
51 virtual bool Accept(); | 52 virtual bool Accept(); |
52 virtual views::View* GetContentsView(); | 53 virtual views::View* GetContentsView(); |
53 | 54 |
54 // Overridden from views::ButtonListener: | 55 // Overridden from views::ButtonListener: |
55 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 56 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
56 | 57 |
57 // Overridden from ComboboxModel: | 58 // Overridden from ComboboxModel: |
58 virtual int GetItemCount(); | 59 virtual int GetItemCount(); |
59 virtual std::wstring GetItemAt(int index); | 60 virtual string16 GetItemAt(int index); |
60 | 61 |
61 // Overridden from ChromeViews::Combobox::Listener: | 62 // Overridden from ChromeViews::Combobox::Listener: |
62 virtual void ItemChanged(views::Combobox* combobox, | 63 virtual void ItemChanged(views::Combobox* combobox, |
63 int prev_index, | 64 int prev_index, |
64 int new_index); | 65 int new_index); |
65 | 66 |
66 // Overridden from ImportObserver: | 67 // Overridden from ImportObserver: |
67 virtual void ImportCanceled(); | 68 virtual void ImportCanceled(); |
68 virtual void ImportComplete(); | 69 virtual void ImportComplete(); |
69 | 70 |
(...skipping 29 matching lines...) Expand all Loading... |
99 | 100 |
100 // Initial state of the |checkbox_items_|. | 101 // Initial state of the |checkbox_items_|. |
101 uint16 initial_state_; | 102 uint16 initial_state_; |
102 | 103 |
103 Profile* profile_; | 104 Profile* profile_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(ImporterView); | 106 DISALLOW_COPY_AND_ASSIGN(ImporterView); |
106 }; | 107 }; |
107 | 108 |
108 #endif // CHROME_BROWSER_VIEWS_IMPORTER_VIEW_H_ | 109 #endif // CHROME_BROWSER_VIEWS_IMPORTER_VIEW_H_ |
OLD | NEW |