diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 21:49:12 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 21:49:12 +0000 |
commit | f00fa4d766ac76419a051345a496caecfbeddc78 (patch) | |
tree | b742fc1bdaa6dfd815e3b8ad719789572bb23398 /chrome/browser/views | |
parent | 50d7d7283db42b531a9df9c6f5a34b8526d4d5b0 (diff) | |
download | chromium_src-f00fa4d766ac76419a051345a496caecfbeddc78.zip chromium_src-f00fa4d766ac76419a051345a496caecfbeddc78.tar.gz chromium_src-f00fa4d766ac76419a051345a496caecfbeddc78.tar.bz2 |
Fix bookmark and menu drag images by making a halo around them. This makes
the ClearType composited on the correct color to fix the semitransparent pixels
into 1-bit transparency pixels.
Remove some unnecessary header file dependencies on ChromeCanvas I noticed
when compiling this patch.
BUG=8258
Review URL: http://codereview.chromium.org/27321
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/frame/aero_glass_non_client_view.cc | 1 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 1 | ||||
-rw-r--r-- | chrome/browser/views/frame/opaque_non_client_view.cc | 1 | ||||
-rw-r--r-- | chrome/browser/views/frame/opaque_non_client_view.h | 1 | ||||
-rw-r--r-- | chrome/browser/views/fullscreen_exit_bubble.cc | 2 | ||||
-rw-r--r-- | chrome/browser/views/infobars/infobars.cc | 1 | ||||
-rw-r--r-- | chrome/browser/views/options/cookies_view.cc | 1 | ||||
-rw-r--r-- | chrome/browser/views/sad_tab_view.h | 9 | ||||
-rw-r--r-- | chrome/browser/views/star_toggle.h | 2 | ||||
-rw-r--r-- | chrome/browser/views/tab_icon_view.h | 1 | ||||
-rw-r--r-- | chrome/browser/views/tabs/dragged_tab_controller.cc | 1 | ||||
-rw-r--r-- | chrome/browser/views/toolbar_view.cc | 1 |
12 files changed, 17 insertions, 5 deletions
diff --git a/chrome/browser/views/frame/aero_glass_non_client_view.cc b/chrome/browser/views/frame/aero_glass_non_client_view.cc index b3036ed..93031d1 100644 --- a/chrome/browser/views/frame/aero_glass_non_client_view.cc +++ b/chrome/browser/views/frame/aero_glass_non_client_view.cc @@ -6,6 +6,7 @@ #include "chrome/browser/views/frame/browser_view.h" #include "chrome/browser/views/tabs/tab_strip.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/resource_bundle.h" #include "chrome/views/client_view.h" #include "chrome/views/window_resources.h" diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index e8cb64a..f287485 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -42,6 +42,7 @@ #include "chrome/browser/window_sizer.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/drag_drop_types.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/l10n_util.h" #include "chrome/common/notification_service.h" #include "chrome/common/os_exchange_data.h" diff --git a/chrome/browser/views/frame/opaque_non_client_view.cc b/chrome/browser/views/frame/opaque_non_client_view.cc index 48d88db..2ed23f8 100644 --- a/chrome/browser/views/frame/opaque_non_client_view.cc +++ b/chrome/browser/views/frame/opaque_non_client_view.cc @@ -6,6 +6,7 @@ #include "chrome/browser/views/frame/browser_view.h" #include "chrome/browser/views/tabs/tab_strip.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/gfx/chrome_font.h" #include "chrome/common/gfx/path.h" #include "chrome/common/l10n_util.h" diff --git a/chrome/browser/views/frame/opaque_non_client_view.h b/chrome/browser/views/frame/opaque_non_client_view.h index 8caf563..6160b9d 100644 --- a/chrome/browser/views/frame/opaque_non_client_view.h +++ b/chrome/browser/views/frame/opaque_non_client_view.h @@ -11,6 +11,7 @@ #include "chrome/views/button.h" class BrowserView; +class ChromeFont; class OpaqueFrame; class TabContents; class TabStrip; diff --git a/chrome/browser/views/fullscreen_exit_bubble.cc b/chrome/browser/views/fullscreen_exit_bubble.cc index 170763b..efc600a 100644 --- a/chrome/browser/views/fullscreen_exit_bubble.cc +++ b/chrome/browser/views/fullscreen_exit_bubble.cc @@ -5,13 +5,13 @@ #include "chrome/browser/views/fullscreen_exit_bubble.h" #include "chrome/app/chrome_dll_resource.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/l10n_util.h" #include "chrome/common/l10n_util_win.h" #include "chrome/common/resource_bundle.h" #include "chrome/views/root_view.h" #include "grit/generated_resources.h" - // FullscreenExitView ---------------------------------------------------------- class FullscreenExitBubble::FullscreenExitView : public views::View { diff --git a/chrome/browser/views/infobars/infobars.cc b/chrome/browser/views/infobars/infobars.cc index 6b7342f..aa60a6b 100644 --- a/chrome/browser/views/infobars/infobars.cc +++ b/chrome/browser/views/infobars/infobars.cc @@ -7,6 +7,7 @@ #include "base/message_loop.h" #include "chrome/browser/views/event_utils.h" #include "chrome/browser/views/infobars/infobar_container.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/l10n_util.h" #include "chrome/common/resource_bundle.h" #include "chrome/common/slide_animation.h" diff --git a/chrome/browser/views/options/cookies_view.cc b/chrome/browser/views/options/cookies_view.cc index 19825ef..e4380a1f5 100644 --- a/chrome/browser/views/options/cookies_view.cc +++ b/chrome/browser/views/options/cookies_view.cc @@ -10,6 +10,7 @@ #include "base/time_format.h" #include "chrome/browser/profile.h" #include "chrome/browser/views/standard_layout.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/gfx/color_utils.h" #include "chrome/common/l10n_util.h" #include "chrome/common/resource_bundle.h" diff --git a/chrome/browser/views/sad_tab_view.h b/chrome/browser/views/sad_tab_view.h index 37d8d99..15e7afe 100644 --- a/chrome/browser/views/sad_tab_view.h +++ b/chrome/browser/views/sad_tab_view.h @@ -2,12 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_BROWSER_VIEWS_SAD_TAB_H__ -#define CHROME_BROWSER_VIEWS_SAD_TAB_H__ +#ifndef CHROME_BROWSER_VIEWS_SAD_TAB_H_ +#define CHROME_BROWSER_VIEWS_SAD_TAB_H_ #include "chrome/common/gfx/chrome_font.h" #include "chrome/views/view.h" +class SkBitmap; + /////////////////////////////////////////////////////////////////////////////// // // SadTabView @@ -52,5 +54,4 @@ class SadTabView : public views::View { DISALLOW_EVIL_CONSTRUCTORS(SadTabView); }; -#endif // #ifndef CHROME_BROWSER_VIEWS_SAD_TAB_H__ - +#endif // #ifndef CHROME_BROWSER_VIEWS_SAD_TAB_H_ diff --git a/chrome/browser/views/star_toggle.h b/chrome/browser/views/star_toggle.h index 4ac8fa2..95f64db 100644 --- a/chrome/browser/views/star_toggle.h +++ b/chrome/browser/views/star_toggle.h @@ -8,6 +8,8 @@ #include "chrome/views/view.h" #include "chrome/views/event.h" +class SkBitmap; + //////////////////////////////////////////////////////////////////////////////// // // A view subclass to implement the star button. The star button notifies its diff --git a/chrome/browser/views/tab_icon_view.h b/chrome/browser/views/tab_icon_view.h index a644163..3a731fc 100644 --- a/chrome/browser/views/tab_icon_view.h +++ b/chrome/browser/views/tab_icon_view.h @@ -7,6 +7,7 @@ #include "chrome/views/view.h" +class SkBitmap; class TabContents; //////////////////////////////////////////////////////////////////////////////// diff --git a/chrome/browser/views/tabs/dragged_tab_controller.cc b/chrome/browser/views/tabs/dragged_tab_controller.cc index 806faeb..e5e7cad 100644 --- a/chrome/browser/views/tabs/dragged_tab_controller.cc +++ b/chrome/browser/views/tabs/dragged_tab_controller.cc @@ -17,6 +17,7 @@ #include "chrome/browser/views/tabs/tab_strip.h" #include "chrome/browser/tab_contents/web_contents.h" #include "chrome/common/animation.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/notification_service.h" #include "chrome/views/event.h" #include "chrome/views/root_view.h" diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc index 295c6ef..dd88eff 100644 --- a/chrome/browser/views/toolbar_view.cc +++ b/chrome/browser/views/toolbar_view.cc @@ -30,6 +30,7 @@ #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/drag_drop_types.h" +#include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/l10n_util.h" #include "chrome/common/notification_service.h" #include "chrome/common/os_exchange_data.h" |