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

Side by Side Diff: views/window/dialog_client_view.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months 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
« no previous file with comments | « views/window/custom_frame_view.cc ('k') | views/window/window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "views/window/dialog_client_view.h" 5 #include "views/window/dialog_client_view.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <uxtheme.h> 9 #include <uxtheme.h>
10 #include <vsstyle.h> 10 #include <vsstyle.h>
11 #else 11 #else
12 #include <gtk/gtk.h> 12 #include <gtk/gtk.h>
13 #endif 13 #endif
14 14
15 #include <algorithm> 15 #include <algorithm>
16 16
17 #include "app/l10n_util.h" 17 #include "app/l10n_util.h"
18 #include "app/resource_bundle.h"
19 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
20 #include "gfx/canvas_skia.h" 19 #include "gfx/canvas_skia.h"
21 #include "gfx/font.h" 20 #include "gfx/font.h"
22 #include "grit/app_strings.h" 21 #include "grit/app_strings.h"
23 #include "ui/base/keycodes/keyboard_codes.h" 22 #include "ui/base/keycodes/keyboard_codes.h"
23 #include "ui/base/resource/resource_bundle.h"
24 #include "views/controls/button/native_button.h" 24 #include "views/controls/button/native_button.h"
25 #include "views/standard_layout.h" 25 #include "views/standard_layout.h"
26 #include "views/window/dialog_delegate.h" 26 #include "views/window/dialog_delegate.h"
27 #include "views/window/window.h" 27 #include "views/window/window.h"
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 #include "gfx/native_theme_win.h" 30 #include "gfx/native_theme_win.h"
31 #else 31 #else
32 #include "gfx/skia_utils_gtk.h" 32 #include "gfx/skia_utils_gtk.h"
33 #include "views/window/hit_test.h" 33 #include "views/window/hit_test.h"
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 void DialogClientView::InitClass() { 566 void DialogClientView::InitClass() {
567 static bool initialized = false; 567 static bool initialized = false;
568 if (!initialized) { 568 if (!initialized) {
569 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 569 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
570 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); 570 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont));
571 initialized = true; 571 initialized = true;
572 } 572 }
573 } 573 }
574 574
575 } // namespace views 575 } // namespace views
OLDNEW
« no previous file with comments | « views/window/custom_frame_view.cc ('k') | views/window/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698