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

Side by Side Diff: content/renderer/render_widget.h

Issue 1400003003: Move has_focus_ tracking from RenderWidget to RenderView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Leave OnSetFocus plumbing alone Created 5 years, 2 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
OLDNEW
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 CONTENT_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 CompositorDependencies* compositor_deps, 117 CompositorDependencies* compositor_deps,
118 blink::WebLocalFrame* frame); 118 blink::WebLocalFrame* frame);
119 119
120 // Closes a RenderWidget that was created by |CreateForFrame|. 120 // Closes a RenderWidget that was created by |CreateForFrame|.
121 void CloseForFrame(); 121 void CloseForFrame();
122 122
123 int32 routing_id() const { return routing_id_; } 123 int32 routing_id() const { return routing_id_; }
124 CompositorDependencies* compositor_deps() const { return compositor_deps_; } 124 CompositorDependencies* compositor_deps() const { return compositor_deps_; }
125 blink::WebWidget* webwidget() const { return webwidget_; } 125 blink::WebWidget* webwidget() const { return webwidget_; }
126 gfx::Size size() const { return size_; } 126 gfx::Size size() const { return size_; }
127 bool has_focus() const { return has_focus_; }
128 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } 127 bool is_fullscreen_granted() const { return is_fullscreen_granted_; }
129 blink::WebDisplayMode display_mode() const { return display_mode_; } 128 blink::WebDisplayMode display_mode() const { return display_mode_; }
130 bool is_hidden() const { return is_hidden_; } 129 bool is_hidden() const { return is_hidden_; }
131 bool handling_input_event() const { return handling_input_event_; } 130 bool handling_input_event() const { return handling_input_event_; }
132 // Temporary for debugging purposes... 131 // Temporary for debugging purposes...
133 bool closing() const { return closing_; } 132 bool closing() const { return closing_; }
134 bool is_swapped_out() { return is_swapped_out_; } 133 bool is_swapped_out() { return is_swapped_out_; }
135 bool for_oopif() { return for_oopif_; } 134 bool for_oopif() { return for_oopif_; }
136 ui::MenuSourceType context_menu_source_type() { 135 ui::MenuSourceType context_menu_source_type() {
137 return context_menu_source_type_; 136 return context_menu_source_type_;
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 643
645 // Indicates that we are never visible, so never produce graphical output. 644 // Indicates that we are never visible, so never produce graphical output.
646 const bool compositor_never_visible_; 645 const bool compositor_never_visible_;
647 646
648 // Indicates whether tab-initiated fullscreen was granted. 647 // Indicates whether tab-initiated fullscreen was granted.
649 bool is_fullscreen_granted_; 648 bool is_fullscreen_granted_;
650 649
651 // Indicates the display mode. 650 // Indicates the display mode.
652 blink::WebDisplayMode display_mode_; 651 blink::WebDisplayMode display_mode_;
653 652
654 // Indicates whether we have been focused/unfocused by the browser.
655 bool has_focus_;
656
657 // Are we currently handling an input event? 653 // Are we currently handling an input event?
658 bool handling_input_event_; 654 bool handling_input_event_;
659 655
660 // Used to intercept overscroll notifications while an event is being 656 // Used to intercept overscroll notifications while an event is being
661 // handled. If the event causes overscroll, the overscroll metadata can be 657 // handled. If the event causes overscroll, the overscroll metadata can be
662 // bundled in the event ack, saving an IPC. Note that we must continue 658 // bundled in the event ack, saving an IPC. Note that we must continue
663 // supporting overscroll IPC notifications due to fling animation updates. 659 // supporting overscroll IPC notifications due to fling animation updates.
664 scoped_ptr<DidOverscrollParams>* handling_event_overscroll_; 660 scoped_ptr<DidOverscrollParams>* handling_event_overscroll_;
665 661
666 // Are we currently handling an ime event? 662 // Are we currently handling an ime event?
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 ui::MenuSourceType context_menu_source_type_; 790 ui::MenuSourceType context_menu_source_type_;
795 bool has_host_context_menu_location_; 791 bool has_host_context_menu_location_;
796 gfx::Point host_context_menu_location_; 792 gfx::Point host_context_menu_location_;
797 793
798 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 794 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
799 }; 795 };
800 796
801 } // namespace content 797 } // namespace content
802 798
803 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 799 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698