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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 348056: Highlight node with mouse over it while selecting element to inspect (Closed)
Patch Set: Created 11 years, 1 month 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) 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_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // Send a response to an extension api call that it was blocked for lack of 430 // Send a response to an extension api call that it was blocked for lack of
431 // permission. 431 // permission.
432 void BlockExtensionRequest(int request_id); 432 void BlockExtensionRequest(int request_id);
433 433
434 // Notify the renderer that its view type has changed. 434 // Notify the renderer that its view type has changed.
435 void ViewTypeChanged(ViewType::Type type); 435 void ViewTypeChanged(ViewType::Type type);
436 436
437 // Tell renderer which browser window it is being attached to. 437 // Tell renderer which browser window it is being attached to.
438 void UpdateBrowserWindowId(int window_id); 438 void UpdateBrowserWindowId(int window_id);
439 439
440 void set_in_inspect_element_mode(bool enabled) {
441 in_inspect_element_mode_ = enabled;
442 }
443
444 protected: 440 protected:
445 // RenderWidgetHost protected overrides. 441 // RenderWidgetHost protected overrides.
446 virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event); 442 virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event);
447 virtual bool UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); 443 virtual bool UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event);
448 virtual void OnUserGesture(); 444 virtual void OnUserGesture();
449 virtual void NotifyRendererUnresponsive(); 445 virtual void NotifyRendererUnresponsive();
450 virtual void NotifyRendererResponsive(); 446 virtual void NotifyRendererResponsive();
451 virtual void OnMsgFocusedNodeChanged(); 447 virtual void OnMsgFocusedNodeChanged();
452 448
453 // IPC message handlers. 449 // IPC message handlers.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 int32 line_no, 542 int32 line_no,
547 const std::wstring& source_id); 543 const std::wstring& source_id);
548 544
549 void OnUpdateInspectorSettings(const std::string& raw_settings); 545 void OnUpdateInspectorSettings(const std::string& raw_settings);
550 void OnForwardToDevToolsAgent(const IPC::Message& message); 546 void OnForwardToDevToolsAgent(const IPC::Message& message);
551 void OnForwardToDevToolsClient(const IPC::Message& message); 547 void OnForwardToDevToolsClient(const IPC::Message& message);
552 void OnActivateDevToolsWindow(); 548 void OnActivateDevToolsWindow();
553 void OnCloseDevToolsWindow(); 549 void OnCloseDevToolsWindow();
554 void OnDockDevToolsWindow(); 550 void OnDockDevToolsWindow();
555 void OnUndockDevToolsWindow(); 551 void OnUndockDevToolsWindow();
556 void OnToggleInspectElementMode(bool enabled);
557 void OnDevToolsRuntimeFeatureStateChanged(const std::string& feature, 552 void OnDevToolsRuntimeFeatureStateChanged(const std::string& feature,
558 bool enabled); 553 bool enabled);
559 554
560 void OnUserMetricsRecordAction(const std::wstring& action); 555 void OnUserMetricsRecordAction(const std::wstring& action);
561 void OnMissingPluginStatus(int status); 556 void OnMissingPluginStatus(int status);
562 void OnCrashedPlugin(const FilePath& plugin_path); 557 void OnCrashedPlugin(const FilePath& plugin_path);
563 558
564 void OnReceivedSavableResourceLinksForCurrentPage( 559 void OnReceivedSavableResourceLinksForCurrentPage(
565 const std::vector<GURL>& resources_list, 560 const std::vector<GURL>& resources_list,
566 const std::vector<GURL>& referrers_list, 561 const std::vector<GURL>& referrers_list,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 // Valid only when is_waiting_for_unload_ack_ is true, this tells us if the 646 // Valid only when is_waiting_for_unload_ack_ is true, this tells us if the
652 // unload request is for closing the entire tab ( = false), or only this 647 // unload request is for closing the entire tab ( = false), or only this
653 // RenderViewHost in the case of a cross-site transition ( = true). 648 // RenderViewHost in the case of a cross-site transition ( = true).
654 bool unload_ack_is_for_cross_site_transition_; 649 bool unload_ack_is_for_cross_site_transition_;
655 650
656 bool are_javascript_messages_suppressed_; 651 bool are_javascript_messages_suppressed_;
657 652
658 // True if the render view can be shut down suddenly. 653 // True if the render view can be shut down suddenly.
659 bool sudden_termination_allowed_; 654 bool sudden_termination_allowed_;
660 655
661 // DevTools triggers this mode when user chooses inspect lens tool.
662 // While in this mode, mouse click is converted into InspectElement
663 // command.
664 bool in_inspect_element_mode_;
665
666 NotificationRegistrar registrar_; 656 NotificationRegistrar registrar_;
667 657
668 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 658 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
669 }; 659 };
670 660
671 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 661 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_manager.cc ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698