summaryrefslogtreecommitdiffstats
path: root/ui/base/dragdrop/os_exchange_data_provider_aura.cc
blob: 349b89fff9317ab6bef42dd5de07d7c9b1962810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright (c) 2011 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 "ui/base/dragdrop/os_exchange_data.h"

#include "base/logging.h"

namespace ui {

// OSExchangeData::Provider implementation for aura on linux.
class OSExchangeDataProviderAura : public OSExchangeData::Provider {
 public:
  OSExchangeDataProviderAura() {
    NOTIMPLEMENTED();
  }

  virtual ~OSExchangeDataProviderAura() {
  }

  virtual void SetString(const string16& data) OVERRIDE {
  }
  virtual void SetURL(const GURL& url, const string16& title) OVERRIDE {
  }
  virtual void SetFilename(const FilePath& path) OVERRIDE {
  }
  virtual void SetPickledData(OSExchangeData::CustomFormat format,
                              const Pickle& data) OVERRIDE {
  }

  virtual bool GetString(string16* data) const OVERRIDE {
    return false;
  }
  virtual bool GetURLAndTitle(GURL* url, string16* title) const OVERRIDE {
    return false;
  }
  virtual bool GetFilename(FilePath* path) const OVERRIDE {
    return false;
  }
  virtual bool GetPickledData(OSExchangeData::CustomFormat format,
                              Pickle* data) const OVERRIDE {
    return false;
  }

  virtual bool HasString() const OVERRIDE {
    return false;
  }
  virtual bool HasURL() const OVERRIDE {
    return false;
  }
  virtual bool HasFile() const OVERRIDE {
    return false;
  }
  virtual bool HasCustomFormat(
      OSExchangeData::CustomFormat format) const OVERRIDE {
    return false;
  }

 private:
  DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura);
};

///////////////////////////////////////////////////////////////////////////////
// OSExchangeData, public:

// static
OSExchangeData::Provider* OSExchangeData::CreateProvider() {
  return new OSExchangeDataProviderAura();
}

// static
OSExchangeData::CustomFormat
OSExchangeData::RegisterCustomFormat(const std::string& type) {
  // TODO(davemoore) Implement this for aura.
  return NULL;
}

}  // namespace ui