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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 DCHECK(resize_ack != SEND_RESIZE_ACK || !next_paint_is_resize_ack()); | 337 DCHECK(resize_ack != SEND_RESIZE_ACK || !next_paint_is_resize_ack()); |
338 DCHECK(resize_ack == SEND_RESIZE_ACK || resize_ack == NO_RESIZE_ACK); | 338 DCHECK(resize_ack == SEND_RESIZE_ACK || resize_ack == NO_RESIZE_ACK); |
339 | 339 |
340 // Ignore this during shutdown. | 340 // Ignore this during shutdown. |
341 if (!webwidget_) | 341 if (!webwidget_) |
342 return; | 342 return; |
343 | 343 |
344 if (compositor_) | 344 if (compositor_) |
345 compositor_->setViewportSize(new_size, physical_backing_size); | 345 compositor_->setViewportSize(new_size, physical_backing_size); |
346 | 346 |
347 physical_backing_size_ = physical_backing_size_; | 347 physical_backing_size_ = physical_backing_size; |
348 resizer_rect_ = resizer_rect; | 348 resizer_rect_ = resizer_rect; |
349 | 349 |
350 // NOTE: We may have entered fullscreen mode without changing our size. | 350 // NOTE: We may have entered fullscreen mode without changing our size. |
351 bool fullscreen_change = is_fullscreen_ != is_fullscreen; | 351 bool fullscreen_change = is_fullscreen_ != is_fullscreen; |
352 if (fullscreen_change) | 352 if (fullscreen_change) |
353 WillToggleFullscreen(); | 353 WillToggleFullscreen(); |
354 is_fullscreen_ = is_fullscreen; | 354 is_fullscreen_ = is_fullscreen; |
355 | 355 |
356 if (size_ != new_size) { | 356 if (size_ != new_size) { |
357 // TODO(darin): We should not need to reset this here. | 357 // TODO(darin): We should not need to reset this here. |
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2155 bool RenderWidget::WillHandleGestureEvent( | 2155 bool RenderWidget::WillHandleGestureEvent( |
2156 const WebKit::WebGestureEvent& event) { | 2156 const WebKit::WebGestureEvent& event) { |
2157 return false; | 2157 return false; |
2158 } | 2158 } |
2159 | 2159 |
2160 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 2160 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
2161 return true; | 2161 return true; |
2162 } | 2162 } |
2163 | 2163 |
2164 } // namespace content | 2164 } // namespace content |
OLD | NEW |