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

Unified Diff: ui/views/controls/native_control_gtk.h

Issue 9728002: Removing deprecated GTK-Views code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « ui/views/controls/native/native_view_host_gtk.cc ('k') | ui/views/controls/native_control_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native_control_gtk.h
diff --git a/ui/views/controls/native_control_gtk.h b/ui/views/controls/native_control_gtk.h
deleted file mode 100644
index a72c943f7e35bbd1cc07342d5d29e3d9b059b86a..0000000000000000000000000000000000000000
--- a/ui/views/controls/native_control_gtk.h
+++ /dev/null
@@ -1,52 +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.
-
-#ifndef UI_VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_
-#define UI_VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_
-#pragma once
-
-#include <gtk/gtk.h>
-
-#include "base/compiler_specific.h"
-#include "ui/views/controls/native/native_view_host.h"
-
-namespace views {
-
-// A View that hosts a native control.
-class NativeControlGtk : public NativeViewHost {
- public:
- NativeControlGtk();
- virtual ~NativeControlGtk();
-
- // Overridden from View:
- virtual void OnEnabledChanged() OVERRIDE;
-
- protected:
- virtual void ViewHierarchyChanged(bool is_add,
- View *parent,
- View *child) OVERRIDE;
- virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE;
- virtual void OnFocus() OVERRIDE;
-
- // Called when the NativeControlGtk is attached to a View hierarchy with a
- // valid Widget. The NativeControlGtk should use this opportunity to create
- // its associated GtkWidget.
- virtual void CreateNativeControl() = 0;
-
- // MUST be called by the subclass implementation of |CreateNativeControl|
- // immediately after creating the control GtkWidget, otherwise it won't be
- // attached to the GtkView and will be effectively orphaned.
- virtual void NativeControlCreated(GtkWidget* widget);
-
- private:
- static gboolean CallFocusIn(GtkWidget* gtk_widget,
- GdkEventFocus* event,
- NativeControlGtk* button);
-
- DISALLOW_COPY_AND_ASSIGN(NativeControlGtk);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_
« no previous file with comments | « ui/views/controls/native/native_view_host_gtk.cc ('k') | ui/views/controls/native_control_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698