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

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

Issue 155068: DevTools: preserve focus on activating dev tools window. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « chrome/browser/debugger/devtools_manager.cc ('k') | chrome/browser/debugger/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) 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_DEV_TOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 class DevToolsWindow : public DevToolsClientHost, public NotificationObserver { 25 class DevToolsWindow : public DevToolsClientHost, public NotificationObserver {
26 public: 26 public:
27 static DevToolsWindow* CreateDevToolsWindow(Profile* profile, 27 static DevToolsWindow* CreateDevToolsWindow(Profile* profile,
28 RenderViewHost* inspected_rvh, 28 RenderViewHost* inspected_rvh,
29 bool docked); 29 bool docked);
30 30
31 static TabContents* GetDevToolsContents(TabContents* inspected_tab); 31 static TabContents* GetDevToolsContents(TabContents* inspected_tab);
32 32
33 virtual ~DevToolsWindow(); 33 virtual ~DevToolsWindow();
34 virtual void Show() = 0; 34 virtual void Show() = 0;
35 virtual void Activate() = 0;
35 bool is_docked() { return docked_; }; 36 bool is_docked() { return docked_; };
36 RenderViewHost* GetRenderViewHost(); 37 RenderViewHost* GetRenderViewHost();
37 38
38 // DevToolsClientHost override. 39 // DevToolsClientHost override.
39 virtual DevToolsWindow* AsDevToolsWindow(); 40 virtual DevToolsWindow* AsDevToolsWindow();
40 virtual void SendMessageToClient(const IPC::Message& message); 41 virtual void SendMessageToClient(const IPC::Message& message);
41 42
42 // NotificationObserver override. 43 // NotificationObserver override.
43 virtual void Observe(NotificationType type, 44 virtual void Observe(NotificationType type,
44 const NotificationSource& source, 45 const NotificationSource& source,
(...skipping 12 matching lines...) Expand all
57 58
58 private: 59 private:
59 static BrowserWindow* GetBrowserWindow(RenderViewHost* rvh); 60 static BrowserWindow* GetBrowserWindow(RenderViewHost* rvh);
60 NotificationRegistrar registrar_; 61 NotificationRegistrar registrar_;
61 62
62 bool docked_; 63 bool docked_;
63 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 64 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
64 }; 65 };
65 66
66 #endif // CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_ 67 #endif // CHROME_BROWSER_DEBUGGER_DEV_TOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_manager.cc ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698