Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: chrome/browser/chromeos/options/network_config_view.h

Issue 2659973003: [Harmony] Harmony Chrome OS Wifi dialog. (Closed)
Patch Set: Address ellyjones@'s comments. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Returns corresponding native window. 55 // Returns corresponding native window.
56 gfx::NativeWindow GetNativeWindow() const; 56 gfx::NativeWindow GetNativeWindow() const;
57 57
58 // views::DialogDelegate methods. 58 // views::DialogDelegate methods.
59 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 59 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
60 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 60 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
61 bool Cancel() override; 61 bool Cancel() override;
62 bool Accept() override; 62 bool Accept() override;
63 views::View* CreateExtraView() override; 63 views::View* CreateExtraView() override;
64 views::View* GetInitiallyFocusedView() override; 64 views::View* GetInitiallyFocusedView() override;
65 int GetDefaultDialogButton() const override;
65 66
66 // views::WidgetDelegate methods. 67 // views::WidgetDelegate methods.
67 base::string16 GetWindowTitle() const override; 68 base::string16 GetWindowTitle() const override;
68 ui::ModalType GetModalType() const override; 69 ui::ModalType GetModalType() const override;
69 70
70 // views::View overrides. 71 // views::View overrides.
71 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 72 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
72 73
73 // views::ButtonListener overrides. 74 // views::ButtonListener overrides.
74 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 75 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Called when "Cancel" button is clicked. 138 // Called when "Cancel" button is clicked.
138 virtual void Cancel() = 0; 139 virtual void Cancel() = 0;
139 140
140 // Called to set focus when view is recreated with the same dialog 141 // Called to set focus when view is recreated with the same dialog
141 // being active. For example, clicking on "Advanced" button. 142 // being active. For example, clicking on "Advanced" button.
142 virtual void InitFocus() = 0; 143 virtual void InitFocus() = 0;
143 144
144 // Returns 'true' if the dialog is for configuration only (default is false). 145 // Returns 'true' if the dialog is for configuration only (default is false).
145 virtual bool IsConfigureDialog(); 146 virtual bool IsConfigureDialog();
146 147
147 // Minimum with of input fields / combo boxes. 148 // Minimum width of input fields / combo boxes.
148 static const int kInputFieldMinWidth; 149 static const int kInputFieldMinWidth;
149 150
151 // The height of input fields /combo boxes.
152 static const int kInputFieldHeight;
153
150 protected: 154 protected:
151 // Gets the default network share state for the current login state. 155 // Gets the default network share state for the current login state.
152 static void GetShareStateForLoginState(bool* default_value, bool* modifiable); 156 static void GetShareStateForLoginState(bool* default_value, bool* modifiable);
153 157
154 NetworkConfigView* parent_; 158 NetworkConfigView* parent_;
155 std::string service_path_; 159 std::string service_path_;
156 160
157 private: 161 private:
158 DISALLOW_COPY_AND_ASSIGN(ChildNetworkConfigView); 162 DISALLOW_COPY_AND_ASSIGN(ChildNetworkConfigView);
159 }; 163 };
(...skipping 12 matching lines...) Expand all
172 private: 176 private:
173 bool managed_; 177 bool managed_;
174 views::ImageView* image_view_; 178 views::ImageView* image_view_;
175 179
176 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); 180 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView);
177 }; 181 };
178 182
179 } // namespace chromeos 183 } // namespace chromeos
180 184
181 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ 185 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/DEPS ('k') | chrome/browser/chromeos/options/network_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698