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

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

Issue 3156016: Making window.focus()/blur() work only when user initiated (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix Linux compile 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 WindowOpenDisposition disposition, 96 WindowOpenDisposition disposition,
97 PageTransition::Type transition); 97 PageTransition::Type transition);
98 virtual void NavigationStateChanged(const TabContents* source, 98 virtual void NavigationStateChanged(const TabContents* source,
99 unsigned changed_flags); 99 unsigned changed_flags);
100 virtual void AddNewContents(TabContents* source, 100 virtual void AddNewContents(TabContents* source,
101 TabContents* new_contents, 101 TabContents* new_contents,
102 WindowOpenDisposition disposition, 102 WindowOpenDisposition disposition,
103 const gfx::Rect& initial_pos, 103 const gfx::Rect& initial_pos,
104 bool user_gesture); 104 bool user_gesture);
105 virtual void ActivateContents(TabContents* contents); 105 virtual void ActivateContents(TabContents* contents);
106 virtual void DeactivateContents(TabContents* contents);
106 virtual void LoadingStateChanged(TabContents* source); 107 virtual void LoadingStateChanged(TabContents* source);
107 virtual void CloseContents(TabContents* source); 108 virtual void CloseContents(TabContents* source);
108 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 109 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
109 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 110 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
110 virtual void URLStarredChanged(TabContents* source, bool starred); 111 virtual void URLStarredChanged(TabContents* source, bool starred);
111 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 112 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
112 113
113 // Overridden from NotificationObserver: 114 // Overridden from NotificationObserver:
114 virtual void Observe(NotificationType type, 115 virtual void Observe(NotificationType type,
115 const NotificationSource& source, 116 const NotificationSource& source,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // Did the mouse move enough that we started a drag? 329 // Did the mouse move enough that we started a drag?
329 bool started_drag_; 330 bool started_drag_;
330 331
331 // Is the drag active? 332 // Is the drag active?
332 bool active_; 333 bool active_;
333 334
334 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); 335 DISALLOW_COPY_AND_ASSIGN(DraggedTabController);
335 }; 336 };
336 337
337 #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