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/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 | 950 |
951 void RenderWidgetHostViewAura::BeginFrameSubscription( | 951 void RenderWidgetHostViewAura::BeginFrameSubscription( |
952 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) { | 952 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) { |
953 delegated_frame_host_->BeginFrameSubscription(subscriber.Pass()); | 953 delegated_frame_host_->BeginFrameSubscription(subscriber.Pass()); |
954 } | 954 } |
955 | 955 |
956 void RenderWidgetHostViewAura::EndFrameSubscription() { | 956 void RenderWidgetHostViewAura::EndFrameSubscription() { |
957 delegated_frame_host_->EndFrameSubscription(); | 957 delegated_frame_host_->EndFrameSubscription(); |
958 } | 958 } |
959 | 959 |
960 void RenderWidgetHostViewAura::OnAcceleratedCompositingStateChange() { | |
961 } | |
962 | |
963 void RenderWidgetHostViewAura::AcceleratedSurfaceInitialized(int host_id, | 960 void RenderWidgetHostViewAura::AcceleratedSurfaceInitialized(int host_id, |
964 int route_id) { | 961 int route_id) { |
965 } | 962 } |
966 | 963 |
967 void RenderWidgetHostViewAura::InternalSetBounds(const gfx::Rect& rect) { | 964 void RenderWidgetHostViewAura::InternalSetBounds(const gfx::Rect& rect) { |
968 if (HasDisplayPropertyChanged(window_)) | 965 if (HasDisplayPropertyChanged(window_)) |
969 host_->InvalidateScreenInfo(); | 966 host_->InvalidateScreenInfo(); |
970 | 967 |
971 // Don't recursively call SetBounds if this bounds update is the result of | 968 // Don't recursively call SetBounds if this bounds update is the result of |
972 // a Window::SetBoundsInternal call. | 969 // a Window::SetBoundsInternal call. |
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2382 | 2379 |
2383 //////////////////////////////////////////////////////////////////////////////// | 2380 //////////////////////////////////////////////////////////////////////////////// |
2384 // RenderWidgetHostViewBase, public: | 2381 // RenderWidgetHostViewBase, public: |
2385 | 2382 |
2386 // static | 2383 // static |
2387 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2384 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
2388 GetScreenInfoForWindow(results, NULL); | 2385 GetScreenInfoForWindow(results, NULL); |
2389 } | 2386 } |
2390 | 2387 |
2391 } // namespace content | 2388 } // namespace content |
OLD | NEW |