| 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 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 481 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 482 // platforms that support deferred GPU process descheduling. This does | 482 // platforms that support deferred GPU process descheduling. This does |
| 483 // nothing if the compositor thread is enabled. | 483 // nothing if the compositor thread is enabled. |
| 484 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 484 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
| 485 void AcknowledgeSwapBuffersToRenderer(); | 485 void AcknowledgeSwapBuffersToRenderer(); |
| 486 | 486 |
| 487 bool is_threaded_compositing_enabled() const { | 487 bool is_threaded_compositing_enabled() const { |
| 488 return is_threaded_compositing_enabled_; | 488 return is_threaded_compositing_enabled_; |
| 489 } | 489 } |
| 490 | 490 |
| 491 #if defined(USE_AURA) | |
| 492 // Called by the view when the parent changes. If a parent isn't available, | |
| 493 // NULL is used. | |
| 494 void ParentChanged(gfx::NativeViewId new_parent); | |
| 495 #endif | |
| 496 | |
| 497 void set_allow_privileged_mouse_lock(bool allow) { | 491 void set_allow_privileged_mouse_lock(bool allow) { |
| 498 allow_privileged_mouse_lock_ = allow; | 492 allow_privileged_mouse_lock_ = allow; |
| 499 } | 493 } |
| 500 | 494 |
| 501 // Resets state variables related to tracking pending size and painting. | 495 // Resets state variables related to tracking pending size and painting. |
| 502 // | 496 // |
| 503 // We need to reset these flags when we want to repaint the contents of | 497 // We need to reset these flags when we want to repaint the contents of |
| 504 // browser plugin in this RWH. Resetting these flags will ensure we ignore | 498 // browser plugin in this RWH. Resetting these flags will ensure we ignore |
| 505 // any previous pending acks that are not relevant upon repaint. | 499 // any previous pending acks that are not relevant upon repaint. |
| 506 void ResetSizeAndRepaintPendingFlags(); | 500 void ResetSizeAndRepaintPendingFlags(); |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 924 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
| 931 | 925 |
| 932 int64 last_input_number_; | 926 int64 last_input_number_; |
| 933 | 927 |
| 934 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 928 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 935 }; | 929 }; |
| 936 | 930 |
| 937 } // namespace content | 931 } // namespace content |
| 938 | 932 |
| 939 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 933 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |