summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/dnd_registry.h
blob: 141e33a062194e54272e3f24fec6876245c33e69 (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
// Copyright (c) 2009 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_GTK_DND_REGISTRY_H_
#define CHROME_BROWSER_GTK_DND_REGISTRY_H_

// We wrap all of these constants in a namespace to prevent pollution.
namespace dnd {

// Registry of all internal int codes for drag and drop.
//
// These ids need to be unique app wide. Simply adding a GtkTargetEntry with an
// id of 0 should be an error and it will conflict with X_CHROME_TAB below.
enum {
  // Tab DND items:
  X_CHROME_TAB = 0,

  // Tabstrip DND items:
  X_CHROME_STRING,
  X_CHROME_TEXT_PLAIN,
  X_CHROME_TEXT_URI_LIST,

  // Bookmark DND items:
  X_CHROME_BOOKMARK_ITEM
};

};

#endif  // CHROME_BROWSER_GTK_DND_REGISTRY_H_