Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: chrome/browser/chromeos/frame/bubble_window_views.cc

Issue 8538015: Further removal of unused code in old bubbles. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chromeos/frame/bubble_window_views.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/frame/bubble_window_views.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698