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

Side by Side Diff: chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h

Issue 3174030: Making window.focus()/blur() work only when there is a user gesture. (Closed) Base URL: git://codf21.jail/chromium.git
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
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_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 WindowOpenDisposition disposition, 75 WindowOpenDisposition disposition,
76 PageTransition::Type transition); 76 PageTransition::Type transition);
77 virtual void NavigationStateChanged(const TabContents* source, 77 virtual void NavigationStateChanged(const TabContents* source,
78 unsigned changed_flags); 78 unsigned changed_flags);
79 virtual void AddNewContents(TabContents* source, 79 virtual void AddNewContents(TabContents* source,
80 TabContents* new_contents, 80 TabContents* new_contents,
81 WindowOpenDisposition disposition, 81 WindowOpenDisposition disposition,
82 const gfx::Rect& initial_pos, 82 const gfx::Rect& initial_pos,
83 bool user_gesture); 83 bool user_gesture);
84 virtual void ActivateContents(TabContents* contents); 84 virtual void ActivateContents(TabContents* contents);
85 virtual void DeactivateContents(TabContents* contents);
85 virtual void LoadingStateChanged(TabContents* source); 86 virtual void LoadingStateChanged(TabContents* source);
86 virtual void CloseContents(TabContents* source); 87 virtual void CloseContents(TabContents* source);
87 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 88 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
88 virtual bool IsPopup(TabContents* source); 89 virtual bool IsPopup(TabContents* source);
89 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 90 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
90 virtual void URLStarredChanged(TabContents* source, bool starred); 91 virtual void URLStarredChanged(TabContents* source, bool starred);
91 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 92 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
92 93
93 // Overridden from NotificationObserver: 94 // Overridden from NotificationObserver:
94 virtual void Observe(NotificationType type, 95 virtual void Observe(NotificationType type,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 262
262 // Timer used to bring the window under the cursor to front. If the user 263 // Timer used to bring the window under the cursor to front. If the user
263 // stops moving the mouse for a brief time over a browser window, it is 264 // stops moving the mouse for a brief time over a browser window, it is
264 // brought to front. 265 // brought to front.
265 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; 266 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_;
266 267
267 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); 268 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk);
268 }; 269 };
269 270
270 #endif // CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ 271 #endif // CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/gtk/tabs/dragged_tab_controller_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698