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

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

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 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/frame_consumer.h » ('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 2015 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/empty_cursor_filter.h" 5 #include "remoting/client/empty_cursor_filter.h"
6 6
7 #include <stdint.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
11 #include "build/build_config.h"
9 #include "remoting/proto/control.pb.h" 12 #include "remoting/proto/control.pb.h"
10 13
11 namespace remoting { 14 namespace remoting {
12 15
13 protocol::CursorShapeInfo EmptyCursorShape() { 16 protocol::CursorShapeInfo EmptyCursorShape() {
14 protocol::CursorShapeInfo empty_shape; 17 protocol::CursorShapeInfo empty_shape;
15 empty_shape.set_data(std::string()); 18 empty_shape.set_data(std::string());
16 empty_shape.set_width(0); 19 empty_shape.set_width(0);
17 empty_shape.set_height(0); 20 empty_shape.set_height(0);
18 empty_shape.set_hotspot_x(0); 21 empty_shape.set_hotspot_x(0);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const uint32_t* src_row_data_end = 60 const uint32_t* src_row_data_end =
58 src_row_data + cursor_shape.width() * cursor_shape.height(); 61 src_row_data + cursor_shape.width() * cursor_shape.height();
59 if (IsVisibleRow(src_row_data, src_row_data_end)) { 62 if (IsVisibleRow(src_row_data, src_row_data_end)) {
60 cursor_stub_->SetCursorShape(cursor_shape); 63 cursor_stub_->SetCursorShape(cursor_shape);
61 return; 64 return;
62 } 65 }
63 cursor_stub_->SetCursorShape(EmptyCursorShape()); 66 cursor_stub_->SetCursorShape(EmptyCursorShape());
64 } 67 }
65 68
66 } // namespace remoting 69 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/empty_cursor_filter.h ('k') | remoting/client/frame_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698