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

Side by Side Diff: ui/base/clipboard/clipboard_chromeos.cc

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with master Created 7 years, 10 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
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 "ui/base/clipboard/clipboard.h" 5 #include "ui/base/clipboard/clipboard.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 DCHECK(CalledOnValidThread()); 441 DCHECK(CalledOnValidThread());
442 // Make sure clipboard is created. 442 // Make sure clipboard is created.
443 GetClipboard(); 443 GetClipboard();
444 } 444 }
445 445
446 Clipboard::~Clipboard() { 446 Clipboard::~Clipboard() {
447 DCHECK(CalledOnValidThread()); 447 DCHECK(CalledOnValidThread());
448 DeleteClipboard(); 448 DeleteClipboard();
449 } 449 }
450 450
451 void Clipboard::WriteObjects(Buffer buffer, const ObjectMap& objects) { 451 void Clipboard::WriteObjectsImpl(Buffer buffer, const ObjectMap& objects) {
452 DCHECK(CalledOnValidThread()); 452 DCHECK(CalledOnValidThread());
453 DCHECK(IsValidBuffer(buffer)); 453 DCHECK(IsValidBuffer(buffer));
454 for (ObjectMap::const_iterator iter = objects.begin(); 454 for (ObjectMap::const_iterator iter = objects.begin();
455 iter != objects.end(); ++iter) { 455 iter != objects.end(); ++iter) {
456 DispatchObject(static_cast<ObjectType>(iter->first), iter->second); 456 DispatchObject(static_cast<ObjectType>(iter->first), iter->second);
457 } 457 }
458 ClipboardDataBuilder::CommitToClipboard(); 458 ClipboardDataBuilder::CommitToClipboard();
459 } 459 }
460 460
461 bool Clipboard::IsFormatAvailable(const FormatType& format, 461 bool Clipboard::IsFormatAvailable(const FormatType& format,
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 return type; 671 return type;
672 } 672 }
673 673
674 // static 674 // static
675 const Clipboard::FormatType& Clipboard::GetPepperCustomDataFormatType() { 675 const Clipboard::FormatType& Clipboard::GetPepperCustomDataFormatType() {
676 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypePepperCustomData)); 676 CR_DEFINE_STATIC_LOCAL(FormatType, type, (kMimeTypePepperCustomData));
677 return type; 677 return type;
678 } 678 }
679 679
680 } // namespace ui 680 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698