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

Side by Side Diff: remoting/host/clipboard_mac.mm

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/host/client_session_unittest.cc ('k') | remoting/host/clipboard_win.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 (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 "remoting/host/clipboard.h" 5 #include "remoting/host/clipboard.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <stdint.h>
8 9
9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
13 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
14 #include "remoting/base/constants.h" 15 #include "remoting/base/constants.h"
15 #include "remoting/base/util.h" 16 #include "remoting/base/util.h"
16 #include "remoting/proto/event.pb.h" 17 #include "remoting/proto/event.pb.h"
17 #include "remoting/protocol/clipboard_stub.h" 18 #include "remoting/protocol/clipboard_stub.h"
18 19
19 namespace { 20 namespace {
20 21
21 // Clipboard polling interval in milliseconds. 22 // Clipboard polling interval in milliseconds.
22 const int64 kClipboardPollingIntervalMs = 500; 23 const int64_t kClipboardPollingIntervalMs = 500;
23 24
24 } // namespace 25 } // namespace
25 26
26 namespace remoting { 27 namespace remoting {
27 28
28 class ClipboardMac : public Clipboard { 29 class ClipboardMac : public Clipboard {
29 public: 30 public:
30 ClipboardMac(); 31 ClipboardMac();
31 ~ClipboardMac() override; 32 ~ClipboardMac() override;
32 33
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 event.set_mime_type(kMimeTypeTextUtf8); 101 event.set_mime_type(kMimeTypeTextUtf8);
101 event.set_data(base::SysNSStringToUTF8(data)); 102 event.set_data(base::SysNSStringToUTF8(data));
102 client_clipboard_->InjectClipboardEvent(event); 103 client_clipboard_->InjectClipboardEvent(event);
103 } 104 }
104 105
105 scoped_ptr<Clipboard> Clipboard::Create() { 106 scoped_ptr<Clipboard> Clipboard::Create() {
106 return make_scoped_ptr(new ClipboardMac()); 107 return make_scoped_ptr(new ClipboardMac());
107 } 108 }
108 109
109 } // namespace remoting 110 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/clipboard_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698