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

Unified Diff: views/widget/widget_gtk.cc

Issue 114054: Splits TooltipManager so that it can be ported and stubs out the 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/widget_gtk.h ('k') | views/widget/widget_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget_gtk.cc
===================================================================
--- views/widget/widget_gtk.cc (revision 17063)
+++ views/widget/widget_gtk.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "views/fill_layout.h"
#include "views/widget/root_view.h"
+#include "views/widget/tooltip_manager_gtk.h"
#include "views/window/window_gtk.h"
namespace views {
@@ -152,6 +153,8 @@
// g_signal_connect(G_OBJECT(widget_), "drag_data_received",
// G_CALLBACK(drag_data_received_event_cb), NULL);
+ tooltip_manager_.reset(new TooltipManagerGtk(this));
+
if (type_ == TYPE_CHILD) {
WidgetGtk* parent_widget = GetViewForNative(parent);
parent_widget->AddChild(widget_);
@@ -301,8 +304,7 @@
}
TooltipManager* WidgetGtk::GetTooltipManager() {
- NOTIMPLEMENTED();
- return NULL;
+ return tooltip_manager_.get();
}
bool WidgetGtk::GetAccelerator(int cmd_id, Accelerator* accelerator) {
« no previous file with comments | « views/widget/widget_gtk.h ('k') | views/widget/widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698