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

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

Issue 2927063003: Revert of [DevTools] Show icon in top toolbar when Node target is available (patchset #3 id:40001 o… (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_window.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_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 "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h" 9 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h"
10 #include "chrome/browser/devtools/devtools_toggle_action.h" 10 #include "chrome/browser/devtools/devtools_toggle_action.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 }; 240 };
241 241
242 enum FrontendType { 242 enum FrontendType {
243 kFrontendDefault, 243 kFrontendDefault,
244 kFrontendRemote, 244 kFrontendRemote,
245 kFrontendWorker, 245 kFrontendWorker,
246 kFrontendV8, 246 kFrontendV8,
247 kFrontendNode 247 kFrontendNode
248 }; 248 };
249 249
250 DevToolsWindow(FrontendType frontend_type, 250 DevToolsWindow(Profile* profile,
251 Profile* profile,
252 content::WebContents* main_web_contents, 251 content::WebContents* main_web_contents,
253 DevToolsUIBindings* bindings, 252 DevToolsUIBindings* bindings,
254 content::WebContents* inspected_web_contents, 253 content::WebContents* inspected_web_contents,
255 bool can_dock); 254 bool can_dock);
256 255
257 // External frontend is always undocked. 256 // External frontend is always undocked.
258 static void OpenExternalFrontend( 257 static void OpenExternalFrontend(
259 Profile* profile, 258 Profile* profile,
260 const std::string& frontend_uri, 259 const std::string& frontend_uri,
261 const scoped_refptr<content::DevToolsAgentHost>& agent_host, 260 const scoped_refptr<content::DevToolsAgentHost>& agent_host,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 BrowserWindow* GetInspectedBrowserWindow(); 344 BrowserWindow* GetInspectedBrowserWindow();
346 void ScheduleShow(const DevToolsToggleAction& action); 345 void ScheduleShow(const DevToolsToggleAction& action);
347 void Show(const DevToolsToggleAction& action); 346 void Show(const DevToolsToggleAction& action);
348 void DoAction(const DevToolsToggleAction& action); 347 void DoAction(const DevToolsToggleAction& action);
349 void LoadCompleted(); 348 void LoadCompleted();
350 void UpdateBrowserToolbar(); 349 void UpdateBrowserToolbar();
351 void UpdateBrowserWindow(); 350 void UpdateBrowserWindow();
352 351
353 std::unique_ptr<ObserverWithAccessor> inspected_contents_observer_; 352 std::unique_ptr<ObserverWithAccessor> inspected_contents_observer_;
354 353
355 FrontendType frontend_type_;
356 Profile* profile_; 354 Profile* profile_;
357 content::WebContents* main_web_contents_; 355 content::WebContents* main_web_contents_;
358 content::WebContents* toolbox_web_contents_; 356 content::WebContents* toolbox_web_contents_;
359 DevToolsUIBindings* bindings_; 357 DevToolsUIBindings* bindings_;
360 Browser* browser_; 358 Browser* browser_;
361 bool is_docked_; 359 bool is_docked_;
362 const bool can_dock_; 360 const bool can_dock_;
363 bool close_on_detach_; 361 bool close_on_detach_;
364 LifeStage life_stage_; 362 LifeStage life_stage_;
365 DevToolsToggleAction action_on_load_; 363 DevToolsToggleAction action_on_load_;
366 DevToolsContentsResizingStrategy contents_resizing_strategy_; 364 DevToolsContentsResizingStrategy contents_resizing_strategy_;
367 // True if we're in the process of handling a beforeunload event originating 365 // True if we're in the process of handling a beforeunload event originating
368 // from the inspected webcontents, see InterceptPageBeforeUnload for details. 366 // from the inspected webcontents, see InterceptPageBeforeUnload for details.
369 bool intercepted_page_beforeunload_; 367 bool intercepted_page_beforeunload_;
370 base::Closure load_completed_callback_; 368 base::Closure load_completed_callback_;
371 base::Closure close_callback_; 369 base::Closure close_callback_;
372 bool ready_for_test_; 370 bool ready_for_test_;
373 base::Closure ready_for_test_callback_; 371 base::Closure ready_for_test_callback_;
374 372
375 base::TimeTicks inspect_element_start_time_; 373 base::TimeTicks inspect_element_start_time_;
376 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; 374 std::unique_ptr<DevToolsEventForwarder> event_forwarder_;
377 std::unique_ptr<DevToolsEyeDropper> eye_dropper_; 375 std::unique_ptr<DevToolsEyeDropper> eye_dropper_;
378 376
379 friend class DevToolsEventForwarder; 377 friend class DevToolsEventForwarder;
380 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 378 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
381 }; 379 };
382 380
383 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 381 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698