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

Side by Side Diff: chrome/browser/ui/constrained_window.cc

Issue 11044020: Make Web Intents picker in Views conform to latest mocks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move link underline into a separate CL Created 8 years, 2 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
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/constrained_window.h" 5 #include "chrome/browser/ui/constrained_window.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/themes/theme_service.h" 8 #include "chrome/browser/themes/theme_service.h"
9 #include "chrome/browser/ui/constrained_window_constants.h"
9 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
12 #include "ui/gfx/image/image.h" 13 #include "ui/gfx/image/image.h"
13 14
14 // static 15 // static
15 int ConstrainedWindow::GetCloseButtonSize() { 16 int ConstrainedWindow::GetCloseButtonSize() {
16 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 17 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
17 const SkBitmap* bitmap = 18 const SkBitmap* bitmap =
18 bundle.GetNativeImageNamed(IDR_TAB_CLOSE).ToSkBitmap(); 19 bundle.GetNativeImageNamed(IDR_TAB_CLOSE).ToSkBitmap();
(...skipping 14 matching lines...) Expand all
33 // static 34 // static
34 SkColor ConstrainedWindow::GetLinkColor() { 35 SkColor ConstrainedWindow::GetLinkColor() {
35 return SkColorSetRGB(0x11, 0x55, 0xCC); 36 return SkColorSetRGB(0x11, 0x55, 0xCC);
36 } 37 }
37 38
38 // static 39 // static
39 SkColor ConstrainedWindow::GetSeparatorColor() { 40 SkColor ConstrainedWindow::GetSeparatorColor() {
40 return SkColorSetRGB(0xE0, 0xE0, 0xE0); 41 return SkColorSetRGB(0xE0, 0xE0, 0xE0);
41 } 42 }
42 43
44 // static
45 gfx::Insets ConstrainedWindow::GetDefaultInsets() {
46 return gfx::Insets(ConstrainedWindowConstants::kClientTopPadding,
47 ConstrainedWindowConstants::kHorizontalPadding,
48 ConstrainedWindowConstants::kClientBottomPadding,
49 ConstrainedWindowConstants::kHorizontalPadding);
50 }
51
43 void ConstrainedWindow::FocusConstrainedWindow() { 52 void ConstrainedWindow::FocusConstrainedWindow() {
44 } 53 }
45 54
46 void ConstrainedWindow::PulseConstrainedWindow() { 55 void ConstrainedWindow::PulseConstrainedWindow() {
47 } 56 }
48 57
49 bool ConstrainedWindow::CanShowConstrainedWindow() { 58 bool ConstrainedWindow::CanShowConstrainedWindow() {
50 return true; 59 return true;
51 } 60 }
52 61
53 gfx::NativeWindow ConstrainedWindow::GetNativeWindow() { 62 gfx::NativeWindow ConstrainedWindow::GetNativeWindow() {
54 NOTREACHED(); 63 NOTREACHED();
55 return NULL; 64 return NULL;
56 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698