| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/wm_ipc.h" | 10 #include "chrome/browser/chromeos/wm_ipc.h" |
| 11 #include "cros/chromeos_wm_ipc_enums.h" | |
| 12 #include "gfx/skia_utils_gtk.h" | 11 #include "gfx/skia_utils_gtk.h" |
| 12 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
| 13 #include "views/window/non_client_view.h" | 13 #include "views/window/non_client_view.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 const SkColor BubbleWindow::kBackgroundColor = SK_ColorWHITE; | 18 const SkColor BubbleWindow::kBackgroundColor = SK_ColorWHITE; |
| 19 | 19 |
| 20 BubbleWindow::BubbleWindow(views::WindowDelegate* window_delegate) | 20 BubbleWindow::BubbleWindow(views::WindowDelegate* window_delegate) |
| 21 : views::WindowGtk(window_delegate) { | 21 : views::WindowGtk(window_delegate) { |
| 22 MakeTransparent(); | 22 MakeTransparent(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 Style style, | 49 Style style, |
| 50 views::WindowDelegate* window_delegate) { | 50 views::WindowDelegate* window_delegate) { |
| 51 BubbleWindow* window = new BubbleWindow(window_delegate); | 51 BubbleWindow* window = new BubbleWindow(window_delegate); |
| 52 window->GetNonClientView()->SetFrameView(new BubbleFrameView(window, style)); | 52 window->GetNonClientView()->SetFrameView(new BubbleFrameView(window, style)); |
| 53 window->Init(parent, bounds); | 53 window->Init(parent, bounds); |
| 54 | 54 |
| 55 return window; | 55 return window; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace chromeos | 58 } // namespace chromeos |
| OLD | NEW |