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

Side by Side Diff: chrome/browser/chromeos/login/network_selection_view.h

Issue 6312160: Map Views to Profiles directly from their window, eliminating the need... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LOGIN_NETWORK_SELECTION_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/chromeos/login/login_html_dialog.h" 11 #include "chrome/browser/chromeos/login/login_html_dialog.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 return proxy_settings_dialog_.get() && proxy_settings_dialog_->is_open(); 73 return proxy_settings_dialog_.get() && proxy_settings_dialog_->is_open();
74 } 74 }
75 75
76 protected: 76 protected:
77 // Overridden from views::View. 77 // Overridden from views::View.
78 virtual bool OnKeyPressed(const views::KeyEvent& e); 78 virtual bool OnKeyPressed(const views::KeyEvent& e);
79 virtual void OnLocaleChanged(); 79 virtual void OnLocaleChanged();
80 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) { 80 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) {
81 return true; 81 return true;
82 } 82 }
83 virtual void ViewHierarchyChanged(bool is_add,
84 views::View* parent,
85 views::View* child);
86 83
87 // LoginHtmlDialog::Delegate implementation: 84 // LoginHtmlDialog::Delegate implementation:
88 virtual void OnDialogClosed() {} 85 virtual void OnDialogClosed() {}
89 86
90 private: 87 private:
91 // Add screen controls to the contents layout specified. 88 // Add screen controls to the contents layout specified.
92 // Based on state (connecting to the network or not) 89 // Based on state (connecting to the network or not)
93 // different controls are added. 90 // different controls are added.
94 void AddControlsToLayout(views::GridLayout* contents_layout); 91 void AddControlsToLayout(views::GridLayout* contents_layout);
95 92
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 128
132 // Dialog used for to launch proxy settings. 129 // Dialog used for to launch proxy settings.
133 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; 130 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_;
134 131
135 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView); 132 DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView);
136 }; 133 };
137 134
138 } // namespace chromeos 135 } // namespace chromeos
139 136
140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_ 137 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/guest_user_view.cc ('k') | chrome/browser/chromeos/login/network_selection_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698