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

Side by Side Diff: chrome/browser/ui/views/frame/app_panel_browser_frame_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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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/ui/views/frame/app_panel_browser_frame_view.h" 5 #include "chrome/browser/ui/views/frame/app_panel_browser_frame_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
10 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/browser/ui/views/frame/browser_frame.h" 11 #include "chrome/browser/ui/views/frame/browser_frame.h"
13 #include "chrome/browser/ui/views/frame/browser_view.h" 12 #include "chrome/browser/ui/views/frame/browser_view.h"
14 #include "gfx/canvas.h" 13 #include "gfx/canvas.h"
15 #include "gfx/font.h" 14 #include "gfx/font.h"
16 #include "gfx/path.h" 15 #include "gfx/path.h"
17 #include "grit/app_resources.h" 16 #include "grit/app_resources.h"
18 #include "grit/chromium_strings.h" 17 #include "grit/chromium_strings.h"
19 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
20 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
20 #include "ui/base/resource/resource_bundle.h"
21 #include "views/controls/button/image_button.h" 21 #include "views/controls/button/image_button.h"
22 #include "views/window/window.h" 22 #include "views/window/window.h"
23 #include "views/window/window_resources.h" 23 #include "views/window/window_resources.h"
24 24
25 #if defined(OS_LINUX) 25 #if defined(OS_LINUX)
26 #include "views/window/hit_test.h" 26 #include "views/window/hit_test.h"
27 #endif 27 #endif
28 28
29 namespace { 29 namespace {
30 // The frame border is only visible in restored mode and is hardcoded to 1 px on 30 // The frame border is only visible in restored mode and is hardcoded to 1 px on
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 498 }
499 499
500 gfx::Rect AppPanelBrowserFrameView::CalculateClientAreaBounds(int width, 500 gfx::Rect AppPanelBrowserFrameView::CalculateClientAreaBounds(int width,
501 int height) const { 501 int height) const {
502 int top_height = NonClientTopBorderHeight(); 502 int top_height = NonClientTopBorderHeight();
503 int border_thickness = NonClientBorderThickness(); 503 int border_thickness = NonClientBorderThickness();
504 return gfx::Rect(border_thickness, top_height, 504 return gfx::Rect(border_thickness, top_height,
505 std::max(0, width - (2 * border_thickness)), 505 std::max(0, width - (2 * border_thickness)),
506 std::max(0, height - top_height - border_thickness)); 506 std::max(0, height - top_height - border_thickness));
507 } 507 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/first_run_search_engine_view.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698