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

Side by Side Diff: chrome/browser/devtools/devtools_window.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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
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_DEVTOOLS_DEVTOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "chrome/browser/devtools/devtools_file_helper.h" 15 #include "chrome/browser/devtools/devtools_file_helper.h"
16 #include "chrome/browser/devtools/devtools_toggle_action.h" 16 #include "chrome/browser/devtools/devtools_toggle_action.h"
17 #include "content/public/browser/devtools_client_host.h" 17 #include "content/public/browser/devtools_client_host.h"
18 #include "content/public/browser/devtools_frontend_host_delegate.h" 18 #include "content/public/browser/devtools_frontend_host_delegate.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/browser/web_contents_delegate.h" 21 #include "content/public/browser/web_contents_delegate.h"
22 22
23 class Browser; 23 class Browser;
24 class BrowserWindow; 24 class BrowserWindow;
25 class DevToolsControllerTest; 25 class DevToolsControllerTest;
26 class PrefRegistrySyncable;
27 class Profile; 26 class Profile;
28 27
29 namespace base { 28 namespace base {
30 class Value; 29 class Value;
31 } 30 }
32 31
33 namespace content { 32 namespace content {
34 class DevToolsAgentHost; 33 class DevToolsAgentHost;
35 class DevToolsClientHost; 34 class DevToolsClientHost;
36 struct FileChooserParams; 35 struct FileChooserParams;
37 class RenderViewHost; 36 class RenderViewHost;
38 class WebContents; 37 class WebContents;
39 } 38 }
40 39
41 namespace IPC { 40 namespace IPC {
42 class Message; 41 class Message;
43 } 42 }
44 43
44 namespace user_prefs {
45 class PrefRegistrySyncable;
46 }
47
45 enum DevToolsDockSide { 48 enum DevToolsDockSide {
46 DEVTOOLS_DOCK_SIDE_UNDOCKED = 0, 49 DEVTOOLS_DOCK_SIDE_UNDOCKED = 0,
47 DEVTOOLS_DOCK_SIDE_BOTTOM, 50 DEVTOOLS_DOCK_SIDE_BOTTOM,
48 DEVTOOLS_DOCK_SIDE_RIGHT, 51 DEVTOOLS_DOCK_SIDE_RIGHT,
49 DEVTOOLS_DOCK_SIDE_MINIMIZED 52 DEVTOOLS_DOCK_SIDE_MINIMIZED
50 }; 53 };
51 54
52 class DevToolsWindow : private content::NotificationObserver, 55 class DevToolsWindow : private content::NotificationObserver,
53 private content::WebContentsDelegate, 56 private content::WebContentsDelegate,
54 private content::DevToolsFrontendHostDelegate { 57 private content::DevToolsFrontendHostDelegate {
55 public: 58 public:
56 static const char kDevToolsApp[]; 59 static const char kDevToolsApp[];
57 static std::string GetDevToolsWindowPlacementPrefKey(); 60 static std::string GetDevToolsWindowPlacementPrefKey();
58 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 61 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
59 static DevToolsWindow* GetDockedInstanceForInspectedTab( 62 static DevToolsWindow* GetDockedInstanceForInspectedTab(
60 content::WebContents* inspected_tab); 63 content::WebContents* inspected_tab);
61 static bool IsDevToolsWindow(content::RenderViewHost* window_rvh); 64 static bool IsDevToolsWindow(content::RenderViewHost* window_rvh);
62 65
63 static DevToolsWindow* OpenDevToolsWindowForWorker( 66 static DevToolsWindow* OpenDevToolsWindowForWorker(
64 Profile* profile, 67 Profile* profile,
65 content::DevToolsAgentHost* worker_agent); 68 content::DevToolsAgentHost* worker_agent);
66 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); 69 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile);
67 static DevToolsWindow* OpenDevToolsWindow( 70 static DevToolsWindow* OpenDevToolsWindow(
68 content::RenderViewHost* inspected_rvh); 71 content::RenderViewHost* inspected_rvh);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 scoped_ptr<content::DevToolsClientHost> frontend_host_; 238 scoped_ptr<content::DevToolsClientHost> frontend_host_;
236 base::WeakPtrFactory<DevToolsWindow> weak_factory_; 239 base::WeakPtrFactory<DevToolsWindow> weak_factory_;
237 scoped_ptr<DevToolsFileHelper> file_helper_; 240 scoped_ptr<DevToolsFileHelper> file_helper_;
238 int width_; 241 int width_;
239 int height_; 242 int height_;
240 DevToolsDockSide dock_side_before_minimized_; 243 DevToolsDockSide dock_side_before_minimized_;
241 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 244 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
242 }; 245 };
243 246
244 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 247 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/custom_handlers/protocol_handler_registry.cc ('k') | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698