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

Side by Side Diff: chrome/browser/views/tabs/dragged_tab_controller.h

Issue 3201008: Revert 57094 - Making window.focus()/blur() work only when there is a user ge... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 WindowOpenDisposition disposition, 97 WindowOpenDisposition disposition,
98 PageTransition::Type transition); 98 PageTransition::Type transition);
99 virtual void NavigationStateChanged(const TabContents* source, 99 virtual void NavigationStateChanged(const TabContents* source,
100 unsigned changed_flags); 100 unsigned changed_flags);
101 virtual void AddNewContents(TabContents* source, 101 virtual void AddNewContents(TabContents* source,
102 TabContents* new_contents, 102 TabContents* new_contents,
103 WindowOpenDisposition disposition, 103 WindowOpenDisposition disposition,
104 const gfx::Rect& initial_pos, 104 const gfx::Rect& initial_pos,
105 bool user_gesture); 105 bool user_gesture);
106 virtual void ActivateContents(TabContents* contents); 106 virtual void ActivateContents(TabContents* contents);
107 virtual void DeactivateContents(TabContents* contents);
108 virtual void LoadingStateChanged(TabContents* source); 107 virtual void LoadingStateChanged(TabContents* source);
109 virtual void CloseContents(TabContents* source); 108 virtual void CloseContents(TabContents* source);
110 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 109 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
111 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 110 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
112 virtual void URLStarredChanged(TabContents* source, bool starred); 111 virtual void URLStarredChanged(TabContents* source, bool starred);
113 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 112 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
114 113
115 // Overridden from NotificationObserver: 114 // Overridden from NotificationObserver:
116 virtual void Observe(NotificationType type, 115 virtual void Observe(NotificationType type,
117 const NotificationSource& source, 116 const NotificationSource& source,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 // Did the mouse move enough that we started a drag? 329 // Did the mouse move enough that we started a drag?
331 bool started_drag_; 330 bool started_drag_;
332 331
333 // Is the drag active? 332 // Is the drag active?
334 bool active_; 333 bool active_;
335 334
336 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); 335 DISALLOW_COPY_AND_ASSIGN(DraggedTabController);
337 }; 336 };
338 337
339 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ 338 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/app_launcher.h ('k') | chrome/browser/views/tabs/dragged_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698