| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "chrome/browser/chromeos/frame/bubble_window_views.h" | |
| 6 | |
| 7 #if defined(TOOLKIT_USES_GTK) | |
| 8 #include <gtk/gtk.h> | |
| 9 #endif | |
| 10 | |
| 11 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" | |
| 12 #include "ui/gfx/skia_utils_gtk.h" | |
| 13 #include "views/widget/widget_delegate.h" | |
| 14 #include "views/window/non_client_view.h" | |
| 15 | |
| 16 | |
| 17 namespace chromeos { | |
| 18 | |
| 19 BubbleWindowViews::BubbleWindowViews(BubbleWindowStyle style) | |
| 20 : style_(style) { | |
| 21 } | |
| 22 | |
| 23 void BubbleWindowViews::SetBackgroundColor() { | |
| 24 #if defined(TOOLKIT_USES_GTK) | |
| 25 // TODO(saintlou): Once Views are truly pure the code below needs to be | |
| 26 // removed and replaced by the corresponding Views code. | |
| 27 GdkColor background_color = | |
| 28 gfx::SkColorToGdkColor(kBubbleWindowBackgroundColor); | |
| 29 gtk_widget_modify_bg(GetNativeView(), GTK_STATE_NORMAL, &background_color); | |
| 30 #endif | |
| 31 } | |
| 32 | |
| 33 views::NonClientFrameView* BubbleWindowViews::CreateNonClientFrameView() { | |
| 34 return new BubbleFrameView(this, widget_delegate(), style_); | |
| 35 } | |
| 36 | |
| 37 } // namespace chromeos | |
| OLD | NEW |