| 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" |
| 11 #include "chrome/browser/devtools/devtools_ui_bindings.h" | 11 #include "chrome/browser/devtools/devtools_ui_bindings.h" |
| 12 #include "content/public/browser/web_contents.h" |
| 12 #include "content/public/browser/web_contents_delegate.h" | 13 #include "content/public/browser/web_contents_delegate.h" |
| 13 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
| 14 | 15 |
| 15 class Browser; | 16 class Browser; |
| 16 class BrowserWindow; | 17 class BrowserWindow; |
| 17 class DevToolsWindowTesting; | 18 class DevToolsWindowTesting; |
| 18 class DevToolsEventForwarder; | 19 class DevToolsEventForwarder; |
| 19 class DevToolsEyeDropper; | 20 class DevToolsEyeDropper; |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 const std::string& settings); | 282 const std::string& settings); |
| 282 | 283 |
| 283 // content::WebContentsDelegate: | 284 // content::WebContentsDelegate: |
| 284 void ActivateContents(content::WebContents* contents) override; | 285 void ActivateContents(content::WebContents* contents) override; |
| 285 void AddNewContents(content::WebContents* source, | 286 void AddNewContents(content::WebContents* source, |
| 286 content::WebContents* new_contents, | 287 content::WebContents* new_contents, |
| 287 WindowOpenDisposition disposition, | 288 WindowOpenDisposition disposition, |
| 288 const gfx::Rect& initial_rect, | 289 const gfx::Rect& initial_rect, |
| 289 bool user_gesture, | 290 bool user_gesture, |
| 290 bool* was_blocked) override; | 291 bool* was_blocked) override; |
| 291 void WebContentsCreated(content::WebContents* source_contents, | 292 void WebContentsCreated( |
| 292 int opener_render_process_id, | 293 content::WebContents* source_contents, |
| 293 int opener_render_frame_id, | 294 int opener_render_process_id, |
| 294 const std::string& frame_name, | 295 int opener_render_frame_id, |
| 295 const GURL& target_url, | 296 const std::string& frame_name, |
| 296 content::WebContents* new_contents) override; | 297 const GURL& target_url, |
| 298 content::WebContents* new_contents, |
| 299 const base::Optional<content::WebContents::CreateParams>& create_params) |
| 300 override; |
| 297 void CloseContents(content::WebContents* source) override; | 301 void CloseContents(content::WebContents* source) override; |
| 298 void ContentsZoomChange(bool zoom_in) override; | 302 void ContentsZoomChange(bool zoom_in) override; |
| 299 void BeforeUnloadFired(content::WebContents* tab, | 303 void BeforeUnloadFired(content::WebContents* tab, |
| 300 bool proceed, | 304 bool proceed, |
| 301 bool* proceed_to_fire_unload) override; | 305 bool* proceed_to_fire_unload) override; |
| 302 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( | 306 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( |
| 303 content::WebContents* source, | 307 content::WebContents* source, |
| 304 const content::NativeWebKeyboardEvent& event) override; | 308 const content::NativeWebKeyboardEvent& event) override; |
| 305 void HandleKeyboardEvent( | 309 void HandleKeyboardEvent( |
| 306 content::WebContents* source, | 310 content::WebContents* source, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 374 |
| 371 base::TimeTicks inspect_element_start_time_; | 375 base::TimeTicks inspect_element_start_time_; |
| 372 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; | 376 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; |
| 373 std::unique_ptr<DevToolsEyeDropper> eye_dropper_; | 377 std::unique_ptr<DevToolsEyeDropper> eye_dropper_; |
| 374 | 378 |
| 375 friend class DevToolsEventForwarder; | 379 friend class DevToolsEventForwarder; |
| 376 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 380 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 377 }; | 381 }; |
| 378 | 382 |
| 379 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 383 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |