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

Side by Side Diff: chrome/browser/tab_contents/infobar.h

Issue 7134024: Disable scalling of InfoBar icon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 #ifndef CHROME_BROWSER_TAB_CONTENTS_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_INFOBAR_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_INFOBAR_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "chrome/browser/tab_contents/infobar_delegate.h" 11 #include "chrome/browser/tab_contents/infobar_delegate.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 #include "ui/base/animation/animation_delegate.h" 13 #include "ui/base/animation/animation_delegate.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 15
16 // TODO(sail): These functions should be static methods in the InfoBar class 16 // TODO(sail): These functions should be static methods in the InfoBar class
17 // below once all platforms use that class. 17 // below once all platforms use that class.
18 SkColor GetInfoBarTopColor(InfoBarDelegate::Type infobar_type); 18 SkColor GetInfoBarTopColor(InfoBarDelegate::Type infobar_type);
19 SkColor GetInfoBarBottomColor(InfoBarDelegate::Type infobar_type); 19 SkColor GetInfoBarBottomColor(InfoBarDelegate::Type infobar_type);
20 int GetInfoBarIconSizePixels();
20 21
21 #if defined(TOOLKIT_VIEWS) // TODO(pkasting): Port non-views to use this. 22 #if defined(TOOLKIT_VIEWS) // TODO(pkasting): Port non-views to use this.
22 23
23 class InfoBarContainer; 24 class InfoBarContainer;
24 class TabContentsWrapper; 25 class TabContentsWrapper;
25 26
26 namespace ui { 27 namespace ui {
27 class SlideAnimation; 28 class SlideAnimation;
28 } 29 }
29 30
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 DISALLOW_COPY_AND_ASSIGN(InfoBar); 123 DISALLOW_COPY_AND_ASSIGN(InfoBar);
123 }; 124 };
124 125
125 #elif defined(TOOLKIT_USES_GTK) 126 #elif defined(TOOLKIT_USES_GTK)
126 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" 127 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h"
127 #elif defined(OS_MACOSX) 128 #elif defined(OS_MACOSX)
128 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 129 #include "chrome/browser/ui/cocoa/infobars/infobar.h"
129 #endif 130 #endif
130 131
131 #endif // CHROME_BROWSER_TAB_CONTENTS_INFOBAR_H_ 132 #endif // CHROME_BROWSER_TAB_CONTENTS_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698