Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 1412173003: cast: support cursor rendering for tab capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit tests Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 } 210 }
211 211
212 base::TimeTicks last_present_time() const { return last_present_time_; } 212 base::TimeTicks last_present_time() const { return last_present_time_; }
213 213
214 void set_should_capture(bool should_capture) { 214 void set_should_capture(bool should_capture) {
215 should_capture_ = should_capture; 215 should_capture_ = should_capture;
216 } 216 }
217 217
218 static void CallbackMethod(base::Callback<void(bool)> callback, 218 static void CallbackMethod(base::Callback<void(bool)> callback,
219 base::TimeTicks present_time, 219 base::TimeTicks present_time,
220 const gfx::Rect& region_in_frame,
220 bool success) { 221 bool success) {
221 callback.Run(success); 222 callback.Run(success);
222 } 223 }
223 224
224 private: 225 private:
225 gfx::Size size_; 226 gfx::Size size_;
226 base::Callback<void(bool)> callback_; 227 base::Callback<void(bool)> callback_;
227 base::TimeTicks last_present_time_; 228 base::TimeTicks last_present_time_;
228 bool should_capture_; 229 bool should_capture_;
229 }; 230 };
(...skipping 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after
3629 ViewMsg_SetSurfaceIdNamespace::Read(msg, &params); 3630 ViewMsg_SetSurfaceIdNamespace::Read(msg, &params);
3630 view_->InitAsChild(NULL); 3631 view_->InitAsChild(NULL);
3631 view_->Show(); 3632 view_->Show();
3632 view_->SetSize(size); 3633 view_->SetSize(size);
3633 view_->OnSwapCompositorFrame(0, 3634 view_->OnSwapCompositorFrame(0,
3634 MakeDelegatedFrame(1.f, size, gfx::Rect(size))); 3635 MakeDelegatedFrame(1.f, size, gfx::Rect(size)));
3635 EXPECT_EQ(view_->GetSurfaceIdNamespace(), base::get<0>(params)); 3636 EXPECT_EQ(view_->GetSurfaceIdNamespace(), base::get<0>(params));
3636 } 3637 }
3637 3638
3638 } // namespace content 3639 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698