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

Unified Diff: views/view_gtk.cc

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 years, 1 month 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 | « views/view_aura.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view_gtk.cc
diff --git a/views/view_gtk.cc b/views/view_gtk.cc
deleted file mode 100644
index af62f1ee34d6c2e54eef26cbd744b758b29c2722..0000000000000000000000000000000000000000
--- a/views/view_gtk.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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 "views/view.h"
-
-#include <gtk/gtk.h>
-
-#include "base/logging.h"
-
-namespace views {
-
-gfx::NativeViewAccessible View::GetNativeViewAccessible() {
- NOTIMPLEMENTED();
- return NULL;
-}
-
-int View::GetHorizontalDragThreshold() {
- static bool determined_threshold = false;
- static int drag_threshold = 8;
- if (determined_threshold)
- return drag_threshold;
- determined_threshold = true;
- GtkSettings* settings = gtk_settings_get_default();
- if (!settings)
- return drag_threshold;
- int value = 0;
- g_object_get(G_OBJECT(settings), "gtk-dnd-drag-threshold", &value, NULL);
- if (value)
- drag_threshold = value;
- return drag_threshold;
-}
-
-int View::GetVerticalDragThreshold() {
- // Vertical and horizontal drag threshold are the same in Gtk.
- return GetHorizontalDragThreshold();
-}
-
-} // namespace views
« no previous file with comments | « views/view_aura.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698