| OLD | NEW |
| 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 "chrome/browser/devtools/devtools_contents_resizing_strategy.h" | 8 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h" |
| 9 #include "chrome/browser/devtools/devtools_toggle_action.h" | 9 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| 10 #include "chrome/browser/devtools/devtools_ui_bindings.h" | 10 #include "chrome/browser/devtools/devtools_ui_bindings.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class PrefRegistrySyncable; | 26 class PrefRegistrySyncable; |
| 27 } | 27 } |
| 28 | 28 |
| 29 class DevToolsWindow : public DevToolsUIBindings::Delegate, | 29 class DevToolsWindow : public DevToolsUIBindings::Delegate, |
| 30 public content::WebContentsDelegate { | 30 public content::WebContentsDelegate { |
| 31 public: | 31 public: |
| 32 class ObserverWithAccessor : public content::WebContentsObserver { | 32 class ObserverWithAccessor : public content::WebContentsObserver { |
| 33 public: | 33 public: |
| 34 explicit ObserverWithAccessor(content::WebContents* web_contents); | 34 explicit ObserverWithAccessor(content::WebContents* web_contents); |
| 35 virtual ~ObserverWithAccessor(); | 35 virtual ~ObserverWithAccessor(); |
| 36 content::WebContents* GetWebContents(); | |
| 37 | 36 |
| 38 private: | 37 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(ObserverWithAccessor); | 38 DISALLOW_COPY_AND_ASSIGN(ObserverWithAccessor); |
| 40 }; | 39 }; |
| 41 | 40 |
| 42 static const char kDevToolsApp[]; | 41 static const char kDevToolsApp[]; |
| 43 | 42 |
| 44 virtual ~DevToolsWindow(); | 43 virtual ~DevToolsWindow(); |
| 45 | 44 |
| 46 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 45 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 base::Closure close_callback_; | 312 base::Closure close_callback_; |
| 314 | 313 |
| 315 base::TimeTicks inspect_element_start_time_; | 314 base::TimeTicks inspect_element_start_time_; |
| 316 scoped_ptr<DevToolsEventForwarder> event_forwarder_; | 315 scoped_ptr<DevToolsEventForwarder> event_forwarder_; |
| 317 | 316 |
| 318 friend class DevToolsEventForwarder; | 317 friend class DevToolsEventForwarder; |
| 319 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 318 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 320 }; | 319 }; |
| 321 | 320 |
| 322 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 321 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |