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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h

Issue 10535134: Add WebUI::GetDeviceScale (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years, 6 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/ui/webui/options2/chromeos/internet_options_handler2.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_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // content::NotificationObserver implementation. 57 // content::NotificationObserver implementation.
58 virtual void Observe(int type, 58 virtual void Observe(int type,
59 const content::NotificationSource& source, 59 const content::NotificationSource& source,
60 const content::NotificationDetails& details) OVERRIDE; 60 const content::NotificationDetails& details) OVERRIDE;
61 61
62 private: 62 private:
63 // Opens a modal popup dialog. 63 // Opens a modal popup dialog.
64 void CreateModalPopup(views::WidgetDelegate* view); 64 void CreateModalPopup(views::WidgetDelegate* view);
65 gfx::NativeWindow GetNativeWindow() const; 65 gfx::NativeWindow GetNativeWindow() const;
66 66
67 // Get preferred scale factor for network icons.
68 float GetIconScaleFactor();
69
70 // Returns the last active browser. If there is no such browser, creates a new 67 // Returns the last active browser. If there is no such browser, creates a new
71 // browser window with an empty tab and returns it. 68 // browser window with an empty tab and returns it.
72 Browser* GetAppropriateBrowser(); 69 Browser* GetAppropriateBrowser();
73 70
74 // Passes data needed to show the details overlay for a network. 71 // Passes data needed to show the details overlay for a network.
75 // |args| will be [ network_type, service_path, command ] 72 // |args| will be [ network_type, service_path, command ]
76 // And command is one of 'options', 'connect', disconnect', 'activate' or 73 // And command is one of 'options', 'connect', disconnect', 'activate' or
77 // 'forget' 74 // 'forget'
78 void NetworkCommandCallback(const base::ListValue* args); 75 void NetworkCommandCallback(const base::ListValue* args);
79 76
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // without worrying that they will actually try to happen after the lifetime 178 // without worrying that they will actually try to happen after the lifetime
182 // of this object. 179 // of this object.
183 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; 180 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_;
184 181
185 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); 182 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler);
186 }; 183 };
187 184
188 } // namespace options2 185 } // namespace options2
189 186
190 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H _ 187 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698