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

Side by Side Diff: chrome/browser/chromeos/network_login_observer.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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) 2011 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 #include "chrome/browser/chromeos/network_login_observer.h" 5 #include "chrome/browser/chromeos/network_login_observer.h"
6 6
7 #include "chrome/browser/chromeos/cros/cros_library.h" 7 #include "chrome/browser/chromeos/cros/cros_library.h"
8 #include "chrome/browser/chromeos/cros/network_library.h" 8 #include "chrome/browser/chromeos/cros/network_library.h"
9 #include "chrome/browser/chromeos/login/background_view.h" 9 #include "chrome/browser/chromeos/login/background_view.h"
10 #include "chrome/browser/chromeos/login/login_utils.h" 10 #include "chrome/browser/chromeos/login/login_utils.h"
11 #include "chrome/browser/chromeos/options/network_config_view.h" 11 #include "chrome/browser/chromeos/options/network_config_view.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_list.h" 13 #include "chrome/browser/ui/browser_list.h"
14 #include "chrome/browser/ui/browser_window.h" 14 #include "chrome/browser/ui/browser_window.h"
15 #include "chrome/browser/ui/views/window.h" 15 #include "chrome/browser/ui/views/window.h"
16 #include "views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 #include "views/widget/widget_delegate.h" 17 #include "ui/views/widget/widget_delegate.h"
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 NetworkLoginObserver::NetworkLoginObserver(NetworkLibrary* netlib) { 21 NetworkLoginObserver::NetworkLoginObserver(NetworkLibrary* netlib) {
22 netlib->AddNetworkManagerObserver(this); 22 netlib->AddNetworkManagerObserver(this);
23 } 23 }
24 24
25 NetworkLoginObserver::~NetworkLoginObserver() { 25 NetworkLoginObserver::~NetworkLoginObserver() {
26 CrosLibrary::Get()->GetNetworkLibrary()->RemoveNetworkManagerObserver(this); 26 CrosLibrary::Get()->GetNetworkLibrary()->RemoveNetworkManagerObserver(this);
27 } 27 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Display login dialog for any error or newly added network. 78 // Display login dialog for any error or newly added network.
79 if (vpn->error() != ERROR_NO_ERROR || vpn->added()) { 79 if (vpn->error() != ERROR_NO_ERROR || vpn->added()) {
80 CreateModalPopup(new NetworkConfigView(vpn)); 80 CreateModalPopup(new NetworkConfigView(vpn));
81 return; // Only support one failure per notification. 81 return; // Only support one failure per notification.
82 } 82 }
83 } 83 }
84 } 84 }
85 } 85 }
86 86
87 } // namespace chromeos 87 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/native_dialog_window.cc ('k') | chrome/browser/chromeos/notifications/balloon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698