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

Side by Side Diff: chrome/browser/debugger/devtools_view.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_DEVTOOLS_VIEW_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_VIEW_H_
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_VIEW_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/gfx/size.h" 11 #include "base/gfx/size.h"
12 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 12 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
13 #include "chrome/views/view.h" 13 #include "chrome/views/view.h"
14 14
15 class DevToolsInstanceDescriptor; 15 namespace IPC {
16 class Message;
17 }
18
19 class RenderViewHost;
16 class TabContentsContainerView; 20 class TabContentsContainerView;
17 class WebContents; 21 class WebContents;
18 22
19 class DevToolsView : public views::View, 23 class DevToolsView : public views::View,
20 public TabContentsDelegate { 24 public TabContentsDelegate {
21 public: 25 public:
22 explicit DevToolsView(DevToolsInstanceDescriptor* descriptor); 26 explicit DevToolsView();
23 virtual ~DevToolsView(); 27 virtual ~DevToolsView();
24 28
25 // Destroy content views when the window is closing. 29 // Destroy content views when the window is closing.
26 void OnWindowClosing(); 30 void OnWindowClosing();
31 void SendMessageToClient(const IPC::Message& message);
32 bool HasRenderViewHost(const RenderViewHost& rvh) const;
27 33
28 private: 34 private:
29 // Overridden from TabContentsDelegate: 35 // Overridden from TabContentsDelegate:
30 virtual void NavigationStateChanged(const TabContents* source, 36 virtual void NavigationStateChanged(const TabContents* source,
31 unsigned changed_flags) {} 37 unsigned changed_flags) {}
32 virtual void ReplaceContents(TabContents* source, 38 virtual void ReplaceContents(TabContents* source,
33 TabContents* new_contents) {} 39 TabContents* new_contents) {}
34 virtual void AddNewContents(TabContents* source, 40 virtual void AddNewContents(TabContents* source,
35 TabContents* new_contents, 41 TabContents* new_contents,
36 WindowOpenDisposition disposition, 42 WindowOpenDisposition disposition,
(...skipping 19 matching lines...) Expand all
56 // Overridden from views::View: 62 // Overridden from views::View:
57 virtual std::string GetClassName() const; 63 virtual std::string GetClassName() const;
58 virtual gfx::Size GetPreferredSize(); 64 virtual gfx::Size GetPreferredSize();
59 virtual void Layout(); 65 virtual void Layout();
60 virtual void ViewHierarchyChanged(bool is_add, 66 virtual void ViewHierarchyChanged(bool is_add,
61 views::View* parent, 67 views::View* parent,
62 views::View* child); 68 views::View* child);
63 69
64 void Init(); 70 void Init();
65 71
66 DevToolsInstanceDescriptor* descriptor_;
67 WebContents* web_contents_; 72 WebContents* web_contents_;
68 TabContentsContainerView* web_container_; 73 TabContentsContainerView* web_container_;
69 74
70 DISALLOW_COPY_AND_ASSIGN(DevToolsView); 75 DISALLOW_COPY_AND_ASSIGN(DevToolsView);
71 }; 76 };
72 77
73 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_VIEW_H_ 78 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_manager_unittest.cc ('k') | chrome/browser/debugger/devtools_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698