| Index: chrome/browser/chromeos/frame/bubble_window.h
|
| diff --git a/chrome/browser/chromeos/frame/bubble_window.h b/chrome/browser/chromeos/frame/bubble_window.h
|
| index 0405ebf2eef831983d18b00c1900cde0cbb0fca5..4a3bf9446558ac59020962981bef05156ccef1a7 100644
|
| --- a/chrome/browser/chromeos/frame/bubble_window.h
|
| +++ b/chrome/browser/chromeos/frame/bubble_window.h
|
| @@ -6,42 +6,28 @@
|
| #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_
|
| #pragma once
|
|
|
| -#include "chrome/browser/chromeos/frame/bubble_window_style.h"
|
| #include "chrome/browser/ui/dialog_style.h"
|
| +#include "ui/views/widget/widget.h"
|
|
|
| -#if defined(TOOLKIT_USES_GTK)
|
| -// TODO(msw): While I dislike the includes and code to be mixed into the same
|
| -// preprocessor conditional, this seems okay as I can hopefully fix this up
|
| -// in a matter of days / crbug.com/98322.
|
| -#include "ui/views/widget/native_widget_gtk.h"
|
| -#else // TOOLKIT_USES_GTK
|
| -#include "ui/views/view.h"
|
| -#endif
|
| -
|
| -namespace views {
|
| -class WidgetDelegate;
|
| -}
|
| -
|
| -#if defined(TOOLKIT_USES_GTK)
|
| -// TODO(msw): To fix as explained above (crbug.com/98322).
|
| namespace chromeos {
|
|
|
| +extern const SkColor kBubbleWindowBackgroundColor;
|
| +
|
| // A window that uses BubbleFrameView as its frame.
|
| -class BubbleWindow : public views::NativeWidgetGtk {
|
| +class BubbleWindow : public views::Widget {
|
| public:
|
| static views::Widget* Create(gfx::NativeWindow parent,
|
| DialogStyle style,
|
| views::WidgetDelegate* widget_delegate);
|
|
|
| - protected:
|
| - BubbleWindow(views::Widget* window, DialogStyle style);
|
| + virtual ~BubbleWindow();
|
|
|
| - // Overridden from views::NativeWidgetGtk:
|
| - virtual void InitNativeWidget(
|
| - const views::Widget::InitParams& params) OVERRIDE;
|
| + // Overridden from views::Widget:
|
| virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
|
|
|
| private:
|
| + explicit BubbleWindow(DialogStyle style);
|
| +
|
| DialogStyle style_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(BubbleWindow);
|
| @@ -49,22 +35,4 @@ class BubbleWindow : public views::NativeWidgetGtk {
|
|
|
| } // namespace chromeos
|
|
|
| -#else // TOOLKIT_USES_GTK
|
| -
|
| -namespace chromeos {
|
| -
|
| -class BubbleWindow {
|
| - public:
|
| - static views::Widget* Create(gfx::NativeWindow parent,
|
| - DialogStyle style,
|
| - views::WidgetDelegate* widget_delegate) {
|
| - NOTIMPLEMENTED();
|
| - return NULL;
|
| - }
|
| -};
|
| -
|
| -} // namespace chromeos
|
| -
|
| -#endif // TOOLKIT_USES_GTK
|
| -
|
| #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_
|
|
|