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

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

Issue 18052008: Use a direct include of time headers in ppapi/, printing/, remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/config_file_watcher.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 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #include "base/timer.h" 13 #include "base/timer/timer.h"
14 #include "remoting/base/constants.h" 14 #include "remoting/base/constants.h"
15 #include "remoting/base/util.h" 15 #include "remoting/base/util.h"
16 #include "remoting/proto/event.pb.h" 16 #include "remoting/proto/event.pb.h"
17 #include "remoting/protocol/clipboard_stub.h" 17 #include "remoting/protocol/clipboard_stub.h"
18 18
19 namespace { 19 namespace {
20 20
21 // Clipboard polling interval in milliseconds. 21 // Clipboard polling interval in milliseconds.
22 const int64 kClipboardPollingIntervalMs = 500; 22 const int64 kClipboardPollingIntervalMs = 500;
23 23
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 event.set_mime_type(kMimeTypeTextUtf8); 114 event.set_mime_type(kMimeTypeTextUtf8);
115 event.set_data(base::SysNSStringToUTF8(data)); 115 event.set_data(base::SysNSStringToUTF8(data));
116 client_clipboard_->InjectClipboardEvent(event); 116 client_clipboard_->InjectClipboardEvent(event);
117 } 117 }
118 118
119 scoped_ptr<Clipboard> Clipboard::Create() { 119 scoped_ptr<Clipboard> Clipboard::Create() {
120 return scoped_ptr<Clipboard>(new ClipboardMac()); 120 return scoped_ptr<Clipboard>(new ClipboardMac());
121 } 121 }
122 122
123 } // namespace remoting 123 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/config_file_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698