| 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 "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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Sets closure to be called after load is done. If already loaded, calls | 117 // Sets closure to be called after load is done. If already loaded, calls |
| 118 // closure immediately. | 118 // closure immediately. |
| 119 void SetLoadCompletedCallback(const base::Closure& closure); | 119 void SetLoadCompletedCallback(const base::Closure& closure); |
| 120 | 120 |
| 121 // Forwards an unhandled keyboard event to the DevTools frontend. | 121 // Forwards an unhandled keyboard event to the DevTools frontend. |
| 122 bool ForwardKeyboardEvent(const content::NativeWebKeyboardEvent& event); | 122 bool ForwardKeyboardEvent(const content::NativeWebKeyboardEvent& event); |
| 123 | 123 |
| 124 // Reloads inspected web contents as if it was triggered from DevTools. | 124 // Reloads inspected web contents as if it was triggered from DevTools. |
| 125 // Returns true if it has successfully handled reload, false if the caller | 125 // Returns true if it has successfully handled reload, false if the caller |
| 126 // is to proceed reload without DevTools interception. | 126 // is to proceed reload without DevTools interception. |
| 127 bool ReloadInspectedWebContents(bool ignore_cache); | 127 bool ReloadInspectedWebContents(bool bypass_cache); |
| 128 | 128 |
| 129 content::WebContents* OpenURLFromTab( | 129 content::WebContents* OpenURLFromTab( |
| 130 content::WebContents* source, | 130 content::WebContents* source, |
| 131 const content::OpenURLParams& params) override; | 131 const content::OpenURLParams& params) override; |
| 132 | 132 |
| 133 void ShowCertificateViewer(int certificate_id); | 133 void ShowCertificateViewer(int certificate_id); |
| 134 | 134 |
| 135 // BeforeUnload interception //////////////////////////////////////////////// | 135 // BeforeUnload interception //////////////////////////////////////////////// |
| 136 | 136 |
| 137 // In order to preserve any edits the user may have made in devtools, the | 137 // In order to preserve any edits the user may have made in devtools, the |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 base::Closure ready_for_test_callback_; | 343 base::Closure ready_for_test_callback_; |
| 344 | 344 |
| 345 base::TimeTicks inspect_element_start_time_; | 345 base::TimeTicks inspect_element_start_time_; |
| 346 scoped_ptr<DevToolsEventForwarder> event_forwarder_; | 346 scoped_ptr<DevToolsEventForwarder> event_forwarder_; |
| 347 | 347 |
| 348 friend class DevToolsEventForwarder; | 348 friend class DevToolsEventForwarder; |
| 349 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 349 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 350 }; | 350 }; |
| 351 | 351 |
| 352 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 352 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |