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

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

Issue 15682004: Remove the network config dialog extra border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also fix the network config view titles. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/options/network_config_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // views::DialogDelegate methods. 55 // views::DialogDelegate methods.
56 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; 56 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
57 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 57 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
58 virtual bool Cancel() OVERRIDE; 58 virtual bool Cancel() OVERRIDE;
59 virtual bool Accept() OVERRIDE; 59 virtual bool Accept() OVERRIDE;
60 virtual views::View* CreateExtraView() OVERRIDE; 60 virtual views::View* CreateExtraView() OVERRIDE;
61 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 61 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
62 62
63 // views::WidgetDelegate methods. 63 // views::WidgetDelegate methods.
64 virtual string16 GetWindowTitle() const OVERRIDE;
64 virtual ui::ModalType GetModalType() const OVERRIDE; 65 virtual ui::ModalType GetModalType() const OVERRIDE;
65 66
66 // views::View overrides. 67 // views::View overrides.
67 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 68 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
68 69
69 // views::ButtonListener overrides. 70 // views::ButtonListener overrides.
70 virtual void ButtonPressed( 71 virtual void ButtonPressed(
71 views::Button* sender, const ui::Event& event) OVERRIDE; 72 views::Button* sender, const ui::Event& event) OVERRIDE;
72 73
73 void set_delegate(Delegate* delegate) { 74 void set_delegate(Delegate* delegate) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // methods, which are called by NetworkConfigView. 111 // methods, which are called by NetworkConfigView.
111 class ChildNetworkConfigView : public views::View { 112 class ChildNetworkConfigView : public views::View {
112 public: 113 public:
113 ChildNetworkConfigView(NetworkConfigView* parent, Network* network) 114 ChildNetworkConfigView(NetworkConfigView* parent, Network* network)
114 : service_path_(network->service_path()), 115 : service_path_(network->service_path()),
115 parent_(parent) {} 116 parent_(parent) {}
116 explicit ChildNetworkConfigView(NetworkConfigView* parent) 117 explicit ChildNetworkConfigView(NetworkConfigView* parent)
117 : parent_(parent) {} 118 : parent_(parent) {}
118 virtual ~ChildNetworkConfigView() {} 119 virtual ~ChildNetworkConfigView() {}
119 120
121 // Get the title to show for the dialog.
122 virtual string16 GetTitle() const = 0;
123
120 // Returns view that should be focused on dialog activation. 124 // Returns view that should be focused on dialog activation.
121 virtual views::View* GetInitiallyFocusedView() = 0; 125 virtual views::View* GetInitiallyFocusedView() = 0;
122 126
123 // Called to determine if "Connect" button should be enabled. 127 // Called to determine if "Connect" button should be enabled.
124 virtual bool CanLogin() = 0; 128 virtual bool CanLogin() = 0;
125 129
126 // Called when "Connect" button is clicked. 130 // Called when "Connect" button is clicked.
127 // Should return false if dialog should remain open. 131 // Should return false if dialog should remain open.
128 virtual bool Login() = 0; 132 virtual bool Login() = 0;
129 133
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 views::ImageView* image_view_; 175 views::ImageView* image_view_;
172 const gfx::ImageSkia* gray_image_; 176 const gfx::ImageSkia* gray_image_;
173 const gfx::ImageSkia* color_image_; 177 const gfx::ImageSkia* color_image_;
174 178
175 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); 179 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView);
176 }; 180 };
177 181
178 } // namespace chromeos 182 } // namespace chromeos
179 183
180 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ 184 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/options/network_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698