| OLD | NEW |
| 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_UI_GTK_TABS_TAB_RENDERER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" | |
| 16 #include "content/common/notification_observer.h" | 15 #include "content/common/notification_observer.h" |
| 17 #include "content/common/notification_registrar.h" | 16 #include "content/common/notification_registrar.h" |
| 18 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
| 19 #include "ui/base/animation/animation_delegate.h" | 18 #include "ui/base/animation/animation_delegate.h" |
| 20 #include "ui/base/gtk/gtk_signal.h" | 19 #include "ui/base/gtk/gtk_signal.h" |
| 20 #include "ui/base/gtk/owned_widget_gtk.h" |
| 21 #include "ui/gfx/canvas.h" | 21 #include "ui/gfx/canvas.h" |
| 22 #include "ui/gfx/font.h" | 22 #include "ui/gfx/font.h" |
| 23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
| 24 | 24 |
| 25 namespace gfx { | 25 namespace gfx { |
| 26 class Size; | 26 class Size; |
| 27 } // namespace gfx | 27 } // namespace gfx |
| 28 | 28 |
| 29 class CustomDrawButton; | 29 class CustomDrawButton; |
| 30 class TabContents; | 30 class TabContents; |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 static gfx::Font* title_font_; | 388 static gfx::Font* title_font_; |
| 389 static int title_font_height_; | 389 static int title_font_height_; |
| 390 | 390 |
| 391 static int close_button_width_; | 391 static int close_button_width_; |
| 392 static int close_button_height_; | 392 static int close_button_height_; |
| 393 | 393 |
| 394 static SkColor selected_title_color_; | 394 static SkColor selected_title_color_; |
| 395 static SkColor unselected_title_color_; | 395 static SkColor unselected_title_color_; |
| 396 | 396 |
| 397 // The GtkDrawingArea we draw the tab on. | 397 // The GtkDrawingArea we draw the tab on. |
| 398 OwnedWidgetGtk tab_; | 398 ui::OwnedWidgetGtk tab_; |
| 399 | 399 |
| 400 // Whether we're showing the icon. It is cached so that we can detect when it | 400 // Whether we're showing the icon. It is cached so that we can detect when it |
| 401 // changes and layout appropriately. | 401 // changes and layout appropriately. |
| 402 bool showing_icon_; | 402 bool showing_icon_; |
| 403 | 403 |
| 404 // Whether we are showing the close button. It is cached so that we can | 404 // Whether we are showing the close button. It is cached so that we can |
| 405 // detect when it changes and layout appropriately. | 405 // detect when it changes and layout appropriately. |
| 406 bool showing_close_button_; | 406 bool showing_close_button_; |
| 407 | 407 |
| 408 // The offset used to animate the favicon location. | 408 // The offset used to animate the favicon location. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 // The current color of the close button. | 446 // The current color of the close button. |
| 447 SkColor close_button_color_; | 447 SkColor close_button_color_; |
| 448 | 448 |
| 449 // Used to listen for theme change notifications. | 449 // Used to listen for theme change notifications. |
| 450 NotificationRegistrar registrar_; | 450 NotificationRegistrar registrar_; |
| 451 | 451 |
| 452 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); | 452 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); |
| 453 }; | 453 }; |
| 454 | 454 |
| 455 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ | 455 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ |
| OLD | NEW |