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

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

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/gtk/html_dialog_gtk.h ('k') | chrome/browser/ui/gtk/web_intent_picker_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "ui/base/animation/animation_delegate.h" 15 #include "ui/base/animation/animation_delegate.h"
16 #include "ui/base/animation/slide_animation.h" 16 #include "ui/base/animation/slide_animation.h"
17 #include "ui/base/gtk/gtk_signal.h" 17 #include "ui/base/gtk/gtk_signal.h"
18 #include "ui/gfx/canvas.h" 18 #include "ui/gfx/canvas.h"
19 #include "ui/gfx/point.h" 19 #include "ui/gfx/point.h"
20 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
21 #include "ui/gfx/size.h" 21 #include "ui/gfx/size.h"
22 22
23 class DragData; 23 class DragData;
24 class TabContents;
25 class TabRendererGtk; 24 class TabRendererGtk;
26 25
27 class DraggedViewGtk : public ui::AnimationDelegate { 26 class DraggedViewGtk : public ui::AnimationDelegate {
28 public: 27 public:
29 DraggedViewGtk(DragData* drag_data, 28 DraggedViewGtk(DragData* drag_data,
30 const gfx::Point& mouse_tab_offset, 29 const gfx::Point& mouse_tab_offset,
31 const gfx::Size& contents_size); 30 const gfx::Size& contents_size);
32 virtual ~DraggedViewGtk(); 31 virtual ~DraggedViewGtk();
33 32
34 // Moves the attached dragged view to the appropriate location. 33 // Moves the attached dragged view to the appropriate location.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 base::Closure animation_callback_; 182 base::Closure animation_callback_;
184 183
185 // The start and end bounds of the animation sequence. 184 // The start and end bounds of the animation sequence.
186 gfx::Rect animation_start_bounds_; 185 gfx::Rect animation_start_bounds_;
187 gfx::Rect animation_end_bounds_; 186 gfx::Rect animation_end_bounds_;
188 187
189 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk); 188 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk);
190 }; 189 };
191 190
192 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ 191 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/html_dialog_gtk.h ('k') | chrome/browser/ui/gtk/web_intent_picker_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698