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 #include "content/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2145 return true; | 2145 return true; |
2146 if (bounds.size() != composition_character_bounds_.size()) | 2146 if (bounds.size() != composition_character_bounds_.size()) |
2147 return true; | 2147 return true; |
2148 for (size_t i = 0; i < bounds.size(); ++i) { | 2148 for (size_t i = 0; i < bounds.size(); ++i) { |
2149 if (bounds[i] != composition_character_bounds_[i]) | 2149 if (bounds[i] != composition_character_bounds_[i]) |
2150 return true; | 2150 return true; |
2151 } | 2151 } |
2152 return false; | 2152 return false; |
2153 } | 2153 } |
2154 | 2154 |
2155 #if defined(OS_ANDROID) | |
2156 bool RenderWidget::DoesRecordFullLayer() const { | |
enne (OOO)
2015/12/01 22:40:33
Is this not used anywhere in Android?
chrishtr
2015/12/01 22:52:17
Not 100% sure. Alex?
| |
2157 return false; | |
2158 } | |
2159 #endif | |
2160 | |
2161 bool RenderWidget::CanComposeInline() { | 2155 bool RenderWidget::CanComposeInline() { |
2162 return true; | 2156 return true; |
2163 } | 2157 } |
2164 | 2158 |
2165 WebScreenInfo RenderWidget::screenInfo() { | 2159 WebScreenInfo RenderWidget::screenInfo() { |
2166 return screen_info_; | 2160 return screen_info_; |
2167 } | 2161 } |
2168 | 2162 |
2169 void RenderWidget::resetInputMethod() { | 2163 void RenderWidget::resetInputMethod() { |
2170 ImeEventGuard guard(this); | 2164 ImeEventGuard guard(this); |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2451 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { | 2445 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { |
2452 video_hole_frames_.AddObserver(frame); | 2446 video_hole_frames_.AddObserver(frame); |
2453 } | 2447 } |
2454 | 2448 |
2455 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { | 2449 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { |
2456 video_hole_frames_.RemoveObserver(frame); | 2450 video_hole_frames_.RemoveObserver(frame); |
2457 } | 2451 } |
2458 #endif // defined(VIDEO_HOLE) | 2452 #endif // defined(VIDEO_HOLE) |
2459 | 2453 |
2460 } // namespace content | 2454 } // namespace content |
OLD | NEW |