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

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

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | 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_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_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/callback_old.h" 12 #include "base/callback_old.h"
13 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/task.h" 15 #include "base/task.h"
15 #include "ui/base/animation/animation_delegate.h" 16 #include "ui/base/animation/animation_delegate.h"
16 #include "ui/base/animation/slide_animation.h" 17 #include "ui/base/animation/slide_animation.h"
17 #include "ui/base/gtk/gtk_signal.h" 18 #include "ui/base/gtk/gtk_signal.h"
18 #include "ui/gfx/canvas.h" 19 #include "ui/gfx/canvas.h"
19 #include "ui/gfx/point.h" 20 #include "ui/gfx/point.h"
20 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
21 #include "ui/gfx/size.h" 22 #include "ui/gfx/size.h"
22 23
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // (regardless of RTL or LTR mode) of the dragged view up to the mouse pointer 90 // (regardless of RTL or LTR mode) of the dragged view up to the mouse pointer
90 // when the drag was initiated. 91 // when the drag was initiated.
91 int GetWidthInTabStripUpToMousePointer(); 92 int GetWidthInTabStripUpToMousePointer();
92 93
93 // Returns the distance from the start of the tabstrip (left, regardless of 94 // Returns the distance from the start of the tabstrip (left, regardless of
94 // RTL) up to the position of the mouse pointer. 95 // RTL) up to the position of the mouse pointer.
95 gfx::Point GetDistanceFromTabStripOriginToMousePointer(); 96 gfx::Point GetDistanceFromTabStripOriginToMousePointer();
96 97
97 private: 98 private:
98 // Overridden from ui::AnimationDelegate: 99 // Overridden from ui::AnimationDelegate:
99 virtual void AnimationProgressed(const ui::Animation* animation); 100 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
100 virtual void AnimationEnded(const ui::Animation* animation); 101 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
101 virtual void AnimationCanceled(const ui::Animation* animation); 102 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE;
102 103
103 // Arranges the contents of the dragged tab. 104 // Arranges the contents of the dragged tab.
104 void Layout(); 105 void Layout();
105 106
106 // Gets the preferred size of the dragged tab. 107 // Gets the preferred size of the dragged tab.
107 gfx::Size GetPreferredSize(); 108 gfx::Size GetPreferredSize();
108 109
109 // Resizes the container to fit the content for the current attachment mode. 110 // Resizes the container to fit the content for the current attachment mode.
110 void ResizeContainer(); 111 void ResizeContainer();
111 112
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 base::Closure animation_callback_; 184 base::Closure animation_callback_;
184 185
185 // The start and end bounds of the animation sequence. 186 // The start and end bounds of the animation sequence.
186 gfx::Rect animation_start_bounds_; 187 gfx::Rect animation_start_bounds_;
187 gfx::Rect animation_end_bounds_; 188 gfx::Rect animation_end_bounds_;
188 189
189 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk); 190 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk);
190 }; 191 };
191 192
192 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ 193 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h ('k') | chrome/browser/ui/gtk/tabs/tab_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698