Disable TabDragController tests that fail with a real compositor.
[chromium-blink-merge.git] / chrome / browser / ui / gtk / overflow_button.h
bloba7c3b7f57cfbe0d8b026c9c6a5def8a1b9b3a291
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_
6 #define CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
11 #include "ui/base/gtk/owned_widget_gtk.h"
13 typedef struct _GtkWidget GtkWidget;
14 class Profile;
16 // An overflow chevron button. The button itself is a plain gtk_chrome_button,
17 // and this class handles theming it.
18 class OverflowButton : public content::NotificationObserver {
19 public:
20 explicit OverflowButton(Profile* profile);
21 virtual ~OverflowButton();
23 GtkWidget* widget() { return widget_.get(); }
25 private:
26 // content::NotificationObserver implementation.
27 virtual void Observe(int type,
28 const content::NotificationSource& source,
29 const content::NotificationDetails& details) OVERRIDE;
31 ui::OwnedWidgetGtk widget_;
33 Profile* profile_;
35 content::NotificationRegistrar registrar_;
38 #endif // CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_