| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 DevToolsFrontendHost(TabContents* tab_contents, | 28 DevToolsFrontendHost(TabContents* tab_contents, |
| 29 DevToolsFrontendHostDelegate* delegate); | 29 DevToolsFrontendHostDelegate* delegate); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 virtual ~DevToolsFrontendHost(); | 32 virtual ~DevToolsFrontendHost(); |
| 33 | 33 |
| 34 // DevToolsFrontendHost implementation. | 34 // DevToolsFrontendHost implementation. |
| 35 virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; | 35 virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; |
| 36 virtual void InspectedTabClosing() OVERRIDE; | 36 virtual void InspectedTabClosing() OVERRIDE; |
| 37 virtual void FrameNavigating(const std::string& url) OVERRIDE; | 37 virtual void FrameNavigating(const std::string& url) OVERRIDE; |
| 38 virtual void TabReplaced(TabContents* new_tab) OVERRIDE; | 38 virtual void TabReplaced(WebContents* new_tab) OVERRIDE; |
| 39 | 39 |
| 40 // content::RenderViewHostObserver overrides. | 40 // content::RenderViewHostObserver overrides. |
| 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 42 | 42 |
| 43 void OnDispatchOnInspectorBackend(const std::string& message); | 43 void OnDispatchOnInspectorBackend(const std::string& message); |
| 44 void OnActivateWindow(); | 44 void OnActivateWindow(); |
| 45 void OnCloseWindow(); | 45 void OnCloseWindow(); |
| 46 void OnMoveWindow(int x, int y); | 46 void OnMoveWindow(int x, int y); |
| 47 void OnRequestDockWindow(); | 47 void OnRequestDockWindow(); |
| 48 void OnRequestUndockWindow(); | 48 void OnRequestUndockWindow(); |
| 49 void OnRequestSetDockSide(const std::string& side); | 49 void OnRequestSetDockSide(const std::string& side); |
| 50 void OnSaveAs(const std::string& file_name, | 50 void OnSaveAs(const std::string& file_name, |
| 51 const std::string& content); | 51 const std::string& content); |
| 52 | 52 |
| 53 TabContents* tab_contents_; | 53 TabContents* tab_contents_; |
| 54 DevToolsFrontendHostDelegate* delegate_; | 54 DevToolsFrontendHostDelegate* delegate_; |
| 55 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost); | 55 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace content | 58 } // namespace content |
| 59 | 59 |
| 60 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ | 60 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ |
| OLD | NEW |