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

Side by Side Diff: views/controls/native_control_gtk.cc

Issue 115886: Stub out textfield on GTK (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/hwnd_view.cc ('k') | views/controls/native_view_host_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // #ifndef CHROME_VIEWS_NATIVE_CONTROL_WIN_H_// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // #ifndef CHROME_VIEWS_NATIVE_CONTROL_WIN_H_// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "views/controls/native_control_gtk.h" 5 #include "views/controls/native_control_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 NativeControlGtk::NativeControlGtk() { 13 NativeControlGtk::NativeControlGtk() : NativeViewHostGtk() {
14 } 14 }
15 15
16 NativeControlGtk::~NativeControlGtk() { 16 NativeControlGtk::~NativeControlGtk() {
17 if (native_view()) 17 if (native_view())
18 gtk_widget_destroy(native_view()); 18 gtk_widget_destroy(native_view());
19 } 19 }
20 20
21 //////////////////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////////////////
22 // NativeControlGtk, View overrides: 22 // NativeControlGtk, View overrides:
23 23
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 void NativeControlGtk::NativeControlCreated(GtkWidget* native_control) { 59 void NativeControlGtk::NativeControlCreated(GtkWidget* native_control) {
60 Attach(native_control); 60 Attach(native_control);
61 61
62 // Update the newly created GtkWdigetwith any resident enabled state. 62 // Update the newly created GtkWdigetwith any resident enabled state.
63 gtk_widget_set_sensitive(native_view(), IsEnabled()); 63 gtk_widget_set_sensitive(native_view(), IsEnabled());
64 } 64 }
65 65
66 } // namespace views 66 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/hwnd_view.cc ('k') | views/controls/native_view_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698