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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 1424913008: Combine tab background image getter code into one place. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@combine_tab_drawing
Patch Set: Created 5 years, 1 month 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) 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_VIEWS_TABS_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 Tab* tab, 224 Tab* tab,
225 const ui::LocatedEvent& event, 225 const ui::LocatedEvent& event,
226 const ui::ListSelectionModel& original_selection) override; 226 const ui::ListSelectionModel& original_selection) override;
227 void ContinueDrag(views::View* view, const ui::LocatedEvent& event) override; 227 void ContinueDrag(views::View* view, const ui::LocatedEvent& event) override;
228 bool EndDrag(EndDragReason reason) override; 228 bool EndDrag(EndDragReason reason) override;
229 Tab* GetTabAt(Tab* tab, const gfx::Point& tab_in_tab_coordinates) override; 229 Tab* GetTabAt(Tab* tab, const gfx::Point& tab_in_tab_coordinates) override;
230 void OnMouseEventInTab(views::View* source, 230 void OnMouseEventInTab(views::View* source,
231 const ui::MouseEvent& event) override; 231 const ui::MouseEvent& event) override;
232 bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) override; 232 bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) override;
233 bool IsImmersiveStyle() const override; 233 bool IsImmersiveStyle() const override;
234 int GetBackgroundResourceId(bool* custom_image) const override;
234 void UpdateTabAccessibilityState(const Tab* tab, 235 void UpdateTabAccessibilityState(const Tab* tab,
235 ui::AXViewState* state) override; 236 ui::AXViewState* state) override;
236 237
237 // MouseWatcherListener overrides: 238 // MouseWatcherListener overrides:
238 void MouseMovedOutOfHost() override; 239 void MouseMovedOutOfHost() override;
239 240
240 // views::View overrides: 241 // views::View overrides:
241 void Layout() override; 242 void Layout() override;
242 void PaintChildren(const ui::PaintContext& context) override; 243 void PaintChildren(const ui::PaintContext& context) override;
243 const char* GetClassName() const override; 244 const char* GetClassName() const override;
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 bool immersive_style_; 646 bool immersive_style_;
646 647
647 // Our observers. 648 // Our observers.
648 typedef base::ObserverList<TabStripObserver> TabStripObservers; 649 typedef base::ObserverList<TabStripObserver> TabStripObservers;
649 TabStripObservers observers_; 650 TabStripObservers observers_;
650 651
651 DISALLOW_COPY_AND_ASSIGN(TabStrip); 652 DISALLOW_COPY_AND_ASSIGN(TabStrip);
652 }; 653 };
653 654
654 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 655 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_controller.h ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698