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

Side by Side Diff: chrome/browser/chromeos/panel_controller.cc

Issue 341044: Move chromeos code to namespace chromeos. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/panel_controller.h" 5 #include "chrome/browser/chromeos/panel_controller.h"
6 6
7 #include <vector>
8
7 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "base/singleton.h" 11 #include "base/singleton.h"
10 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
11 #include "base/string_util.h" 13 #include "base/string_util.h"
12 #include "chrome/browser/browser.h" 14 #include "chrome/browser/browser.h"
13 #if defined(TOOLKIT_VIEWS) 15 #if defined(TOOLKIT_VIEWS)
14 #include "chrome/browser/views/frame/browser_view.h" 16 #include "chrome/browser/views/frame/browser_view.h"
15 #else 17 #else
16 #include "chrome/browser/gtk/browser_window_gtk.h" 18 #include "chrome/browser/gtk/browser_window_gtk.h"
17 #endif 19 #endif
18 #include "chrome/browser/views/tabs/tab_overview_types.h" 20 #include "chrome/browser/views/tabs/tab_overview_types.h"
19 #include "chrome/common/x11_util.h" 21 #include "chrome/common/x11_util.h"
20 #include "grit/app_resources.h" 22 #include "grit/app_resources.h"
21 #include "grit/generated_resources.h" 23 #include "grit/generated_resources.h"
22 #include "grit/theme_resources.h" 24 #include "grit/theme_resources.h"
23 #include "views/controls/button/image_button.h" 25 #include "views/controls/button/image_button.h"
24 #include "views/controls/image_view.h" 26 #include "views/controls/image_view.h"
25 #include "views/controls/label.h" 27 #include "views/controls/label.h"
26 #include "views/event.h" 28 #include "views/event.h"
27 #include "views/view.h" 29 #include "views/view.h"
28 #include "views/widget/widget_gtk.h" 30 #include "views/widget/widget_gtk.h"
29 #include "views/window/window.h" 31 #include "views/window/window.h"
30 32
33 namespace chromeos {
34
31 static int close_button_width; 35 static int close_button_width;
32 static int close_button_height; 36 static int close_button_height;
33 static SkBitmap* close_button_n; 37 static SkBitmap* close_button_n;
34 static SkBitmap* close_button_m; 38 static SkBitmap* close_button_m;
35 static SkBitmap* close_button_h; 39 static SkBitmap* close_button_h;
36 static SkBitmap* close_button_p; 40 static SkBitmap* close_button_p;
37 static gfx::Font* active_font = NULL; 41 static gfx::Font* active_font = NULL;
38 static gfx::Font* inactive_font = NULL; 42 static gfx::Font* inactive_font = NULL;
39 43
40 namespace { 44 namespace {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 329
326 void PanelController::TitleContentView::OnFocusOut() { 330 void PanelController::TitleContentView::OnFocusOut() {
327 set_background(views::Background::CreateVerticalGradientBackground( 331 set_background(views::Background::CreateVerticalGradientBackground(
328 kInactiveGradientStart, kInactiveGradientEnd)); 332 kInactiveGradientStart, kInactiveGradientEnd));
329 title_label_->SetColor(kInactiveColor); 333 title_label_->SetColor(kInactiveColor);
330 title_label_->SetFont(*inactive_font); 334 title_label_->SetFont(*inactive_font);
331 Layout(); 335 Layout();
332 SchedulePaint(); 336 SchedulePaint();
333 } 337 }
334 338
339 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698