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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 const base::TimeTicks& paint_start); | 530 const base::TimeTicks& paint_start); |
531 | 531 |
532 // Paints the given bitmap to the current backing store at the given | 532 // Paints the given bitmap to the current backing store at the given |
533 // location. Returns true if the passed callback was asynchronously | 533 // location. Returns true if the passed callback was asynchronously |
534 // scheduled in the future (and thus the caller must manually synchronously | 534 // scheduled in the future (and thus the caller must manually synchronously |
535 // call the callback function). | 535 // call the callback function). |
536 bool PaintBackingStoreRect(TransportDIB::Id bitmap, | 536 bool PaintBackingStoreRect(TransportDIB::Id bitmap, |
537 const gfx::Rect& bitmap_rect, | 537 const gfx::Rect& bitmap_rect, |
538 const std::vector<gfx::Rect>& copy_rects, | 538 const std::vector<gfx::Rect>& copy_rects, |
539 const gfx::Size& view_size, | 539 const gfx::Size& view_size, |
| 540 float scale_factor, |
540 const base::Closure& completion_callback); | 541 const base::Closure& completion_callback); |
541 | 542 |
542 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The | 543 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The |
543 // |dib| and its corresponding location |bitmap_rect| in the backing store | 544 // |dib| and its corresponding location |bitmap_rect| in the backing store |
544 // is the newly painted pixels by the renderer. | 545 // is the newly painted pixels by the renderer. |
545 void ScrollBackingStoreRect(int dx, int dy, const gfx::Rect& clip_rect, | 546 void ScrollBackingStoreRect(int dx, int dy, const gfx::Rect& clip_rect, |
546 const gfx::Size& view_size); | 547 const gfx::Size& view_size); |
547 | 548 |
548 // Called by OnMsgInputEventAck() to process a keyboard event ack message. | 549 // Called by OnMsgInputEventAck() to process a keyboard event ack message. |
549 void ProcessKeyboardEventAck(int type, bool processed); | 550 void ProcessKeyboardEventAck(int type, bool processed); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 744 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
744 | 745 |
745 scoped_ptr<TapSuppressionController> tap_suppression_controller_; | 746 scoped_ptr<TapSuppressionController> tap_suppression_controller_; |
746 | 747 |
747 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 748 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
748 }; | 749 }; |
749 | 750 |
750 } // namespace content | 751 } // namespace content |
751 | 752 |
752 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 753 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |