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

Side by Side Diff: chrome/browser/ui/gtk/tabs/tab_strip_gtk.h

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_STRIP_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "chrome/browser/tabs/tab_strip_model.h" 16 #include "chrome/browser/tabs/tab_strip_model.h"
17 #include "chrome/browser/ui/gtk/tabs/tab_gtk.h" 17 #include "chrome/browser/ui/gtk/tabs/tab_gtk.h"
18 #include "chrome/browser/ui/gtk/tabstrip_origin_provider.h" 18 #include "chrome/browser/ui/gtk/tabstrip_origin_provider.h"
19 #include "chrome/browser/ui/gtk/view_id_util.h" 19 #include "chrome/browser/ui/gtk/view_id_util.h"
20 #include "chrome/browser/ui/tabs/hover_tab_selector.h" 20 #include "chrome/browser/ui/tabs/hover_tab_selector.h"
21 #include "content/public/browser/notification_observer.h" 21 #include "content/public/browser/notification_observer.h"
22 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
23 #include "ui/base/gtk/gtk_signal.h" 23 #include "ui/base/gtk/gtk_signal.h"
24 #include "ui/base/gtk/owned_widget_gtk.h" 24 #include "ui/base/gtk/owned_widget_gtk.h"
25 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
26 26
27 class BrowserWindowGtk; 27 class BrowserWindowGtk;
28 class CustomDrawButton; 28 class CustomDrawButton;
29 class DraggedTabControllerGtk; 29 class DraggedTabControllerGtk;
30 class GtkThemeService; 30 class ThemeServiceGtk;
31 31
32 namespace gfx { 32 namespace gfx {
33 class Image; 33 class Image;
34 } 34 }
35 35
36 class TabStripGtk : public TabStripModelObserver, 36 class TabStripGtk : public TabStripModelObserver,
37 public TabGtk::TabDelegate, 37 public TabGtk::TabDelegate,
38 public MessageLoopForUI::Observer, 38 public MessageLoopForUI::Observer,
39 public content::NotificationObserver, 39 public content::NotificationObserver,
40 public TabstripOriginProvider, 40 public TabstripOriginProvider,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 TabStripModel::ContextMenuCommand command_id, TabGtk* tab) OVERRIDE; 150 TabStripModel::ContextMenuCommand command_id, TabGtk* tab) OVERRIDE;
151 virtual void StartHighlightTabsForCommand( 151 virtual void StartHighlightTabsForCommand(
152 TabStripModel::ContextMenuCommand command_id, TabGtk* tab) OVERRIDE; 152 TabStripModel::ContextMenuCommand command_id, TabGtk* tab) OVERRIDE;
153 virtual void StopHighlightTabsForCommand( 153 virtual void StopHighlightTabsForCommand(
154 TabStripModel::ContextMenuCommand command_id, TabGtk* tab) OVERRIDE; 154 TabStripModel::ContextMenuCommand command_id, TabGtk* tab) OVERRIDE;
155 virtual void StopAllHighlighting() OVERRIDE; 155 virtual void StopAllHighlighting() OVERRIDE;
156 virtual void MaybeStartDrag(TabGtk* tab, const gfx::Point& point) OVERRIDE; 156 virtual void MaybeStartDrag(TabGtk* tab, const gfx::Point& point) OVERRIDE;
157 virtual void ContinueDrag(GdkDragContext* context) OVERRIDE; 157 virtual void ContinueDrag(GdkDragContext* context) OVERRIDE;
158 virtual bool EndDrag(bool canceled) OVERRIDE; 158 virtual bool EndDrag(bool canceled) OVERRIDE;
159 virtual bool HasAvailableDragActions() const OVERRIDE; 159 virtual bool HasAvailableDragActions() const OVERRIDE;
160 virtual GtkThemeService* GetThemeProvider() OVERRIDE; 160 virtual ThemeServiceGtk* GetThemeProvider() OVERRIDE;
161 virtual TabStripMenuController* GetTabStripMenuControllerForTab( 161 virtual TabStripMenuController* GetTabStripMenuControllerForTab(
162 TabGtk* tab) OVERRIDE; 162 TabGtk* tab) OVERRIDE;
163 163
164 // MessageLoop::Observer implementation: 164 // MessageLoop::Observer implementation:
165 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; 165 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE;
166 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; 166 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE;
167 167
168 // Overridden from content::NotificationObserver: 168 // Overridden from content::NotificationObserver:
169 virtual void Observe(int type, 169 virtual void Observe(int type,
170 const content::NotificationSource& source, 170 const content::NotificationSource& source,
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 // tab background image. 456 // tab background image.
457 int tab_vertical_offset_; 457 int tab_vertical_offset_;
458 458
459 // Our model. 459 // Our model.
460 TabStripModel* model_; 460 TabStripModel* model_;
461 461
462 // The BrowserWindowGtk containing this tab strip. 462 // The BrowserWindowGtk containing this tab strip.
463 BrowserWindowGtk* window_; 463 BrowserWindowGtk* window_;
464 464
465 // Theme resources. 465 // Theme resources.
466 GtkThemeService* theme_service_; 466 ThemeServiceGtk* theme_service_;
467 467
468 // The currently running animation. 468 // The currently running animation.
469 scoped_ptr<TabAnimation> active_animation_; 469 scoped_ptr<TabAnimation> active_animation_;
470 470
471 // The New Tab button. 471 // The New Tab button.
472 scoped_ptr<CustomDrawButton> newtab_button_; 472 scoped_ptr<CustomDrawButton> newtab_button_;
473 473
474 // The bounds of the bitmap surface used to paint the New Tab button. 474 // The bounds of the bitmap surface used to paint the New Tab button.
475 gfx::Rect newtab_surface_bounds_; 475 gfx::Rect newtab_surface_bounds_;
476 476
(...skipping 16 matching lines...) Expand all
493 493
494 // Helper for performing tab selection as a result of dragging over a tab. 494 // Helper for performing tab selection as a result of dragging over a tab.
495 HoverTabSelector hover_tab_selector_; 495 HoverTabSelector hover_tab_selector_;
496 496
497 content::NotificationRegistrar registrar_; 497 content::NotificationRegistrar registrar_;
498 498
499 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 499 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
500 }; 500 };
501 501
502 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 502 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698