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

Side by Side Diff: app/clipboard/clipboard_win.cc

Issue 830002: win: string_util.h -> utf_string_conversions.h fix. (Closed)
Patch Set: Don't remove utf_string_conversions.h from string_util.h just yet Created 10 years, 9 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 | « app/clipboard/clipboard_util_win.cc ('k') | app/l10n_util_dummy.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // Many of these functions are based on those found in 5 // Many of these functions are based on those found in
6 // webkit/port/platform/PasteboardWin.cpp 6 // webkit/port/platform/PasteboardWin.cpp
7 7
8 #include "app/clipboard/clipboard.h" 8 #include "app/clipboard/clipboard.h"
9 9
10 #include <shlobj.h> 10 #include <shlobj.h>
11 #include <shellapi.h> 11 #include <shellapi.h>
12 12
13 #include "app/clipboard/clipboard_util_win.h" 13 #include "app/clipboard/clipboard_util_win.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/gfx/size.h" 15 #include "base/gfx/size.h"
16 #include "base/lock.h" 16 #include "base/lock.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/shared_memory.h" 19 #include "base/shared_memory.h"
20 #include "base/string_util.h" 20 #include "base/string_util.h"
21 #include "base/utf_string_conversions.h"
21 22
22 namespace { 23 namespace {
23 24
24 // A scoper to manage acquiring and automatically releasing the clipboard. 25 // A scoper to manage acquiring and automatically releasing the clipboard.
25 class ScopedClipboard { 26 class ScopedClipboard {
26 public: 27 public:
27 ScopedClipboard() : opened_(false) { } 28 ScopedClipboard() : opened_(false) { }
28 29
29 ~ScopedClipboard() { 30 ~ScopedClipboard() {
30 if (opened_) 31 if (opened_)
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 HWND Clipboard::GetClipboardWindow() const { 588 HWND Clipboard::GetClipboardWindow() const {
588 if (!clipboard_owner_ && create_window_) { 589 if (!clipboard_owner_ && create_window_) {
589 clipboard_owner_ = ::CreateWindow(L"ClipboardOwnerWindowClass", 590 clipboard_owner_ = ::CreateWindow(L"ClipboardOwnerWindowClass",
590 L"ClipboardOwnerWindow", 591 L"ClipboardOwnerWindow",
591 0, 0, 0, 0, 0, 592 0, 0, 0, 0, 0,
592 HWND_MESSAGE, 593 HWND_MESSAGE,
593 0, 0, 0); 594 0, 0, 0);
594 } 595 }
595 return clipboard_owner_; 596 return clipboard_owner_;
596 } 597 }
OLDNEW
« no previous file with comments | « app/clipboard/clipboard_util_win.cc ('k') | app/l10n_util_dummy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698