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

Unified Diff: chrome/browser/gtk/dnd_registry.h

Issue 151033: More web contents dragging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more Dones Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/dnd_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/dnd_registry.h
===================================================================
--- chrome/browser/gtk/dnd_registry.h (revision 19526)
+++ chrome/browser/gtk/dnd_registry.h (working copy)
@@ -1,36 +0,0 @@
-// 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_
-
-#include <gtk/gtk.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 {
- X_CHROME_TAB = 1 << 0,
- X_CHROME_TEXT_PLAIN = 1 << 1,
- X_CHROME_TEXT_URI_LIST = 1 << 2,
- X_CHROME_BOOKMARK_ITEM = 1 << 3,
-};
-
-// Creates a target list from the given mask. The mask should be an OR of
-// X_CHROME_* values. The target list is returned with ref count 1; the caller
-// is responsible for unreffing it when it is no longer needed.
-GtkTargetList* GetTargetListFromCodeMask(int code_mask);
-
-// Set the drag target list for |dest| or |source| with the target list that
-// corresponds to |code_mask|.
-void SetDestTargetListFromCodeMask(GtkWidget* dest, int code_mask);
-void SetSourceTargetListFromCodeMask(GtkWidget* source, int code_mask);
-
-} // namespace dnd
-
-#endif // CHROME_BROWSER_GTK_DND_REGISTRY_H_
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/dnd_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698