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

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

Issue 11272015: DevTools: “Dock to right” broken after turning a tab into a window of its own. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 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_DEBUGGER_DEVTOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Overridden from DevToolsClientHost. 80 // Overridden from DevToolsClientHost.
81 virtual void InspectedContentsClosing() OVERRIDE; 81 virtual void InspectedContentsClosing() OVERRIDE;
82 virtual void ContentsReplaced(content::WebContents* new_contents) OVERRIDE; 82 virtual void ContentsReplaced(content::WebContents* new_contents) OVERRIDE;
83 content::RenderViewHost* GetRenderViewHost(); 83 content::RenderViewHost* GetRenderViewHost();
84 84
85 void Show(DevToolsToggleAction action); 85 void Show(DevToolsToggleAction action);
86 86
87 TabContents* tab_contents() { return tab_contents_; } 87 TabContents* tab_contents() { return tab_contents_; }
88 Browser* browser() { return browser_; } // For tests. 88 Browser* browser() { return browser_; } // For tests.
89 DevToolsDockSide dock_side() { return dock_side_; } 89 DevToolsDockSide dock_side() { return dock_side_; }
90 content::DevToolsClientHost* devtools_client_host() { 90 content::DevToolsClientHost* devtools_client_host() { return frontend_host_; }
91 return frontend_host_; 91 int GetWidth(int container_width);
Peter Kasting 2012/10/24 21:18:09 These getters should be const. You need to docume
pfeldman 2012/10/25 15:17:40 This getter will lazily fetch the value from the p
92 } 92 int GetHeight(int container_height);
93 void SetWidth(int width);
94 void SetHeight(int height);
93 95
94 private: 96 private:
95 static DevToolsWindow* Create(Profile* profile, 97 static DevToolsWindow* Create(Profile* profile,
96 content::RenderViewHost* inspected_rvh, 98 content::RenderViewHost* inspected_rvh,
97 DevToolsDockSide dock_side, 99 DevToolsDockSide dock_side,
98 bool shared_worker_frontend); 100 bool shared_worker_frontend);
99 DevToolsWindow(TabContents* tab_contents, 101 DevToolsWindow(TabContents* tab_contents,
100 Profile* profile, 102 Profile* profile,
101 content::RenderViewHost* inspected_rvh, 103 content::RenderViewHost* inspected_rvh,
102 DevToolsDockSide dock_side); 104 DevToolsDockSide dock_side);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 Profile* profile_; 178 Profile* profile_;
177 TabContents* inspected_tab_; 179 TabContents* inspected_tab_;
178 TabContents* tab_contents_; 180 TabContents* tab_contents_;
179 Browser* browser_; 181 Browser* browser_;
180 DevToolsDockSide dock_side_; 182 DevToolsDockSide dock_side_;
181 bool is_loaded_; 183 bool is_loaded_;
182 DevToolsToggleAction action_on_load_; 184 DevToolsToggleAction action_on_load_;
183 content::NotificationRegistrar registrar_; 185 content::NotificationRegistrar registrar_;
184 content::DevToolsClientHost* frontend_host_; 186 content::DevToolsClientHost* frontend_host_;
185 scoped_ptr<DevToolsFileHelper> file_helper_; 187 scoped_ptr<DevToolsFileHelper> file_helper_;
188 int width_;
189 int height_;
186 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 190 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
187 }; 191 };
188 192
189 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ 193 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/debugger/devtools_window.cc » ('j') | chrome/browser/debugger/devtools_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698