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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 860393004: Expose whether a frame is focused to the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) { 127 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) {
128 hung_renderer_delay_ms_ = timeout.InMilliseconds(); 128 hung_renderer_delay_ms_ = timeout.InMilliseconds();
129 } 129 }
130 130
131 // RenderWidgetHost implementation. 131 // RenderWidgetHost implementation.
132 void UpdateTextDirection(blink::WebTextDirection direction) override; 132 void UpdateTextDirection(blink::WebTextDirection direction) override;
133 void NotifyTextDirection() override; 133 void NotifyTextDirection() override;
134 void Focus() override; 134 void Focus() override;
135 void Blur() override; 135 void Blur() override;
136 bool IsFocused() const override;
136 void SetActive(bool active) override; 137 void SetActive(bool active) override;
137 void CopyFromBackingStore(const gfx::Rect& src_rect, 138 void CopyFromBackingStore(const gfx::Rect& src_rect,
138 const gfx::Size& accelerated_dst_size, 139 const gfx::Size& accelerated_dst_size,
139 ReadbackRequestCallback& callback, 140 ReadbackRequestCallback& callback,
140 const SkColorType color_type) override; 141 const SkColorType color_type) override;
141 bool CanCopyFromBackingStore() override; 142 bool CanCopyFromBackingStore() override;
142 #if defined(OS_ANDROID) 143 #if defined(OS_ANDROID)
143 virtual void LockBackingStore() override; 144 virtual void LockBackingStore() override;
144 virtual void UnlockBackingStore() override; 145 virtual void UnlockBackingStore() override;
145 #endif 146 #endif
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 std::list<HWND> dummy_windows_for_activation_; 822 std::list<HWND> dummy_windows_for_activation_;
822 #endif 823 #endif
823 824
824 RenderWidgetHostLatencyTracker latency_tracker_; 825 RenderWidgetHostLatencyTracker latency_tracker_;
825 826
826 int next_browser_snapshot_id_; 827 int next_browser_snapshot_id_;
827 typedef std::map<int, 828 typedef std::map<int,
828 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; 829 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
829 PendingSnapshotMap pending_browser_snapshots_; 830 PendingSnapshotMap pending_browser_snapshots_;
830 831
832 bool is_focused_;
833
831 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 834 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
832 835
833 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 836 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
834 }; 837 };
835 838
836 } // namespace content 839 } // namespace content
837 840
838 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 841 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698