| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/frame/bubble_window.h" | 5 #include "chrome/browser/chromeos/frame/bubble_window.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" | 9 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" |
| 10 #include "chrome/browser/chromeos/frame/bubble_window_views.h" | |
| 11 #include "ui/gfx/skia_utils_gtk.h" | 10 #include "ui/gfx/skia_utils_gtk.h" |
| 12 #include "views/window/non_client_view.h" | 11 #include "views/window/non_client_view.h" |
| 13 | 12 |
| 14 namespace chromeos { | 13 namespace chromeos { |
| 15 | 14 |
| 16 BubbleWindow::BubbleWindow(views::Widget* window, | 15 BubbleWindow::BubbleWindow(views::Widget* window, |
| 17 BubbleWindowStyle style) | 16 BubbleWindowStyle style) |
| 18 : views::NativeWidgetGtk(window), | 17 : views::NativeWidgetGtk(window), |
| 19 style_(style) { | 18 style_(style) { |
| 20 } | 19 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 params.delegate = widget_delegate; | 55 params.delegate = widget_delegate; |
| 57 params.native_widget = bubble_window; | 56 params.native_widget = bubble_window; |
| 58 params.parent = GTK_WIDGET(parent); | 57 params.parent = GTK_WIDGET(parent); |
| 59 params.bounds = gfx::Rect(); | 58 params.bounds = gfx::Rect(); |
| 60 window->Init(params); | 59 window->Init(params); |
| 61 | 60 |
| 62 return window; | 61 return window; |
| 63 } | 62 } |
| 64 | 63 |
| 65 } // namespace chromeos | 64 } // namespace chromeos |
| OLD | NEW |