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

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

Issue 50009: Allow different types of devtools client (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_DEBUGGER_DEV_TOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/debugger/devtools_client_host.h"
9 10
10 class DevToolsInstanceDescriptor; 11 class RenderViewHost;
11 12
12 class DevToolsWindow { 13 class DevToolsWindow : public DevToolsClientHost {
13 public: 14 public:
14 static DevToolsWindow* Create(DevToolsInstanceDescriptor* descriptor); 15 // Factory method for creating platform specific devtools windows.
16 static DevToolsWindow* Create();
17
15 virtual ~DevToolsWindow() {} 18 virtual ~DevToolsWindow() {}
16 19
17 // Show developer tools window. 20 // Show this window.
18 virtual void Show() = 0; 21 virtual void Show() = 0;
19 virtual void Close() = 0; 22 virtual bool HasRenderViewHost(const RenderViewHost& rvh) const = 0;
23
24 // DevToolsClientHost override.
25 virtual DevToolsWindow* AsDevToolsWindow() { return this; }
20 26
21 protected: 27 protected:
22 DevToolsWindow() {} 28 DevToolsWindow() : DevToolsClientHost() {}
23 29
24 private: 30 private:
25 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 31 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
26 }; 32 };
27 33
28 // Factory for creating DevToolsWindows. Useful for unit tests.
29 class DevToolsWindowFactory {
30 public:
31 virtual ~DevToolsWindowFactory() {}
32 virtual DevToolsWindow* CreateDevToolsWindow(
33 DevToolsInstanceDescriptor* descriptor) = 0;
34 };
35
36
37 #endif // CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ 34 #endif // CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_view.cc ('k') | chrome/browser/debugger/devtools_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698