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

Side by Side Diff: remoting/client/empty_cursor_filter.cc

Issue 1228333004: Move code that doesn't depend on PPAPI out of remoting/client/plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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
« no previous file with comments | « remoting/client/empty_cursor_filter.h ('k') | remoting/client/empty_cursor_filter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/client/plugin/empty_cursor_filter.h" 5 #include "remoting/client/empty_cursor_filter.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "remoting/proto/control.pb.h" 9 #include "remoting/proto/control.pb.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 protocol::CursorShapeInfo EmptyCursorShape() { 13 protocol::CursorShapeInfo EmptyCursorShape() {
14 protocol::CursorShapeInfo empty_shape; 14 protocol::CursorShapeInfo empty_shape;
15 empty_shape.set_data(std::string()); 15 empty_shape.set_data(std::string());
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const uint32_t* src_row_data_end = 57 const uint32_t* src_row_data_end =
58 src_row_data + cursor_shape.width() * cursor_shape.height(); 58 src_row_data + cursor_shape.width() * cursor_shape.height();
59 if (IsVisibleRow(src_row_data, src_row_data_end)) { 59 if (IsVisibleRow(src_row_data, src_row_data_end)) {
60 cursor_stub_->SetCursorShape(cursor_shape); 60 cursor_stub_->SetCursorShape(cursor_shape);
61 return; 61 return;
62 } 62 }
63 cursor_stub_->SetCursorShape(EmptyCursorShape()); 63 cursor_stub_->SetCursorShape(EmptyCursorShape());
64 } 64 }
65 65
66 } // namespace remoting 66 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/empty_cursor_filter.h ('k') | remoting/client/empty_cursor_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698