diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 19:08:37 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 19:08:37 +0000 |
commit | e6443e70aad76bdec71648371201f36f64b03b8d (patch) | |
tree | 45a8f9fcca5c79f91763ae2be860630aa6a6ab05 | |
parent | 1394ee6fa605f013778ea83ad50d57105cf03738 (diff) | |
download | chromium_src-e6443e70aad76bdec71648371201f36f64b03b8d.zip chromium_src-e6443e70aad76bdec71648371201f36f64b03b8d.tar.gz chromium_src-e6443e70aad76bdec71648371201f36f64b03b8d.tar.bz2 |
Fix DOS-style line endings in ClipboardDispatcher*
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2832080
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53657 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/clipboard_dispatcher.h | 82 | ||||
-rw-r--r-- | chrome/browser/clipboard_dispatcher_gtk.cc | 66 | ||||
-rw-r--r-- | chrome/browser/clipboard_dispatcher_mac.mm | 66 | ||||
-rw-r--r-- | chrome/browser/clipboard_dispatcher_win.cc | 66 |
4 files changed, 140 insertions, 140 deletions
diff --git a/chrome/browser/clipboard_dispatcher.h b/chrome/browser/clipboard_dispatcher.h index e346799..30273e7 100644 --- a/chrome/browser/clipboard_dispatcher.h +++ b/chrome/browser/clipboard_dispatcher.h @@ -1,41 +1,41 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CLIPBOARD_DISPATCHER_H_
-#define CHROME_BROWSER_CLIPBOARD_DISPATCHER_H_
-
-#include <vector>
-
-#include "app/clipboard/clipboard.h"
-#include "base/basictypes.h"
-#include "base/string16.h"
-
-// This class backs IPC requests from the renderer for clipboard data. In this
-// context, clipboard does not only refer to the usual concept of a clipboard
-// for copy/paste, which is why it's not in app/clipboard/clipboard.h. It can
-// refer to one of three different types of clipboards:
-// - The copy/paste clipboard, which contains data that has been copied/cut.
-// - The dragging clipboard, which contains data that is currently being
-// dragged.
-// - On X, the selection clipboard, which contains data for the current
-// selection.
-class ClipboardDispatcher {
- public:
- static bool ReadAvailableTypes(Clipboard::Buffer buffer,
- std::vector<string16>* types,
- bool* contains_filenames);
- static bool ReadData(Clipboard::Buffer buffer, const string16& type,
- string16* data, string16* metadata);
- static bool ReadFilenames(Clipboard::Buffer buffer,
- std::vector<string16>* filenames);
-
- private:
- // This class is not meant to be instantiated. All public members are static.
- ClipboardDispatcher();
-
- DISALLOW_COPY_AND_ASSIGN(ClipboardDispatcher);
-};
-
-#endif // CHROME_BROWSER_CLIPBOARD_DISPATCHER_H_
-
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_CLIPBOARD_DISPATCHER_H_ +#define CHROME_BROWSER_CLIPBOARD_DISPATCHER_H_ + +#include <vector> + +#include "app/clipboard/clipboard.h" +#include "base/basictypes.h" +#include "base/string16.h" + +// This class backs IPC requests from the renderer for clipboard data. In this +// context, clipboard does not only refer to the usual concept of a clipboard +// for copy/paste, which is why it's not in app/clipboard/clipboard.h. It can +// refer to one of three different types of clipboards: +// - The copy/paste clipboard, which contains data that has been copied/cut. +// - The dragging clipboard, which contains data that is currently being +// dragged. +// - On X, the selection clipboard, which contains data for the current +// selection. +class ClipboardDispatcher { + public: + static bool ReadAvailableTypes(Clipboard::Buffer buffer, + std::vector<string16>* types, + bool* contains_filenames); + static bool ReadData(Clipboard::Buffer buffer, const string16& type, + string16* data, string16* metadata); + static bool ReadFilenames(Clipboard::Buffer buffer, + std::vector<string16>* filenames); + + private: + // This class is not meant to be instantiated. All public members are static. + ClipboardDispatcher(); + + DISALLOW_COPY_AND_ASSIGN(ClipboardDispatcher); +}; + +#endif // CHROME_BROWSER_CLIPBOARD_DISPATCHER_H_ + diff --git a/chrome/browser/clipboard_dispatcher_gtk.cc b/chrome/browser/clipboard_dispatcher_gtk.cc index 7fe0c3b..ce7e39b 100644 --- a/chrome/browser/clipboard_dispatcher_gtk.cc +++ b/chrome/browser/clipboard_dispatcher_gtk.cc @@ -1,33 +1,33 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/clipboard_dispatcher.h"
-#include "base/logging.h"
-
-bool ClipboardDispatcher::ReadAvailableTypes(Clipboard::Buffer buffer,
- std::vector<string16>* types,
- bool* contains_filenames) {
- DCHECK(types);
- DCHECK(contains_filenames);
- types->clear();
- *contains_filenames = false;
- return false;
-}
-
-bool ClipboardDispatcher::ReadData(Clipboard::Buffer buffer,
- const string16& type,
- string16* data,
- string16* metadata) {
- DCHECK(data);
- DCHECK(metadata);
- return false;
-}
-
-bool ClipboardDispatcher::ReadFilenames(Clipboard::Buffer buffer,
- std::vector<string16>* filenames) {
- DCHECK(filenames);
- filenames->clear();
- return false;
-}
-
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/clipboard_dispatcher.h" +#include "base/logging.h" + +bool ClipboardDispatcher::ReadAvailableTypes(Clipboard::Buffer buffer, + std::vector<string16>* types, + bool* contains_filenames) { + DCHECK(types); + DCHECK(contains_filenames); + types->clear(); + *contains_filenames = false; + return false; +} + +bool ClipboardDispatcher::ReadData(Clipboard::Buffer buffer, + const string16& type, + string16* data, + string16* metadata) { + DCHECK(data); + DCHECK(metadata); + return false; +} + +bool ClipboardDispatcher::ReadFilenames(Clipboard::Buffer buffer, + std::vector<string16>* filenames) { + DCHECK(filenames); + filenames->clear(); + return false; +} + diff --git a/chrome/browser/clipboard_dispatcher_mac.mm b/chrome/browser/clipboard_dispatcher_mac.mm index 7fe0c3b..ce7e39b 100644 --- a/chrome/browser/clipboard_dispatcher_mac.mm +++ b/chrome/browser/clipboard_dispatcher_mac.mm @@ -1,33 +1,33 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/clipboard_dispatcher.h"
-#include "base/logging.h"
-
-bool ClipboardDispatcher::ReadAvailableTypes(Clipboard::Buffer buffer,
- std::vector<string16>* types,
- bool* contains_filenames) {
- DCHECK(types);
- DCHECK(contains_filenames);
- types->clear();
- *contains_filenames = false;
- return false;
-}
-
-bool ClipboardDispatcher::ReadData(Clipboard::Buffer buffer,
- const string16& type,
- string16* data,
- string16* metadata) {
- DCHECK(data);
- DCHECK(metadata);
- return false;
-}
-
-bool ClipboardDispatcher::ReadFilenames(Clipboard::Buffer buffer,
- std::vector<string16>* filenames) {
- DCHECK(filenames);
- filenames->clear();
- return false;
-}
-
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/clipboard_dispatcher.h" +#include "base/logging.h" + +bool ClipboardDispatcher::ReadAvailableTypes(Clipboard::Buffer buffer, + std::vector<string16>* types, + bool* contains_filenames) { + DCHECK(types); + DCHECK(contains_filenames); + types->clear(); + *contains_filenames = false; + return false; +} + +bool ClipboardDispatcher::ReadData(Clipboard::Buffer buffer, + const string16& type, + string16* data, + string16* metadata) { + DCHECK(data); + DCHECK(metadata); + return false; +} + +bool ClipboardDispatcher::ReadFilenames(Clipboard::Buffer buffer, + std::vector<string16>* filenames) { + DCHECK(filenames); + filenames->clear(); + return false; +} + diff --git a/chrome/browser/clipboard_dispatcher_win.cc b/chrome/browser/clipboard_dispatcher_win.cc index 7fe0c3b..ce7e39b 100644 --- a/chrome/browser/clipboard_dispatcher_win.cc +++ b/chrome/browser/clipboard_dispatcher_win.cc @@ -1,33 +1,33 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/clipboard_dispatcher.h"
-#include "base/logging.h"
-
-bool ClipboardDispatcher::ReadAvailableTypes(Clipboard::Buffer buffer,
- std::vector<string16>* types,
- bool* contains_filenames) {
- DCHECK(types);
- DCHECK(contains_filenames);
- types->clear();
- *contains_filenames = false;
- return false;
-}
-
-bool ClipboardDispatcher::ReadData(Clipboard::Buffer buffer,
- const string16& type,
- string16* data,
- string16* metadata) {
- DCHECK(data);
- DCHECK(metadata);
- return false;
-}
-
-bool ClipboardDispatcher::ReadFilenames(Clipboard::Buffer buffer,
- std::vector<string16>* filenames) {
- DCHECK(filenames);
- filenames->clear();
- return false;
-}
-
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/clipboard_dispatcher.h" +#include "base/logging.h" + +bool ClipboardDispatcher::ReadAvailableTypes(Clipboard::Buffer buffer, + std::vector<string16>* types, + bool* contains_filenames) { + DCHECK(types); + DCHECK(contains_filenames); + types->clear(); + *contains_filenames = false; + return false; +} + +bool ClipboardDispatcher::ReadData(Clipboard::Buffer buffer, + const string16& type, + string16* data, + string16* metadata) { + DCHECK(data); + DCHECK(metadata); + return false; +} + +bool ClipboardDispatcher::ReadFilenames(Clipboard::Buffer buffer, + std::vector<string16>* filenames) { + DCHECK(filenames); + filenames->clear(); + return false; +} + |