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

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

Issue 525793002: Make WebContentsObserver::web_contents() public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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
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 "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 11 matching lines...) Expand all
22 class RenderViewHost; 22 class RenderViewHost;
23 } 23 }
24 24
25 namespace user_prefs { 25 namespace user_prefs {
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 {
dgozman 2014/08/31 08:25:29 The whole purpose of this class was to expose web_
lucinka.brozkova 2014/08/31 16:13:54 There are two options: First: Keeping this class,
jam 2014/09/02 19:43:58 I don't think we should use a WebContentsObserver
lucinka.brozkova 2014/09/03 08:16:24 Acknowledged.
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_window.cc » ('j') | chrome/browser/ui/search/instant_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698