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

Side by Side Diff: chrome/browser/gtk/tabs/dragged_tab_controller_gtk.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_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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 WindowOpenDisposition disposition, 74 WindowOpenDisposition disposition,
75 PageTransition::Type transition); 75 PageTransition::Type transition);
76 virtual void NavigationStateChanged(const TabContents* source, 76 virtual void NavigationStateChanged(const TabContents* source,
77 unsigned changed_flags); 77 unsigned changed_flags);
78 virtual void AddNewContents(TabContents* source, 78 virtual void AddNewContents(TabContents* source,
79 TabContents* new_contents, 79 TabContents* new_contents,
80 WindowOpenDisposition disposition, 80 WindowOpenDisposition disposition,
81 const gfx::Rect& initial_pos, 81 const gfx::Rect& initial_pos,
82 bool user_gesture); 82 bool user_gesture);
83 virtual void ActivateContents(TabContents* contents); 83 virtual void ActivateContents(TabContents* contents);
84 virtual void DeactivateContents(TabContents* contents);
84 virtual void LoadingStateChanged(TabContents* source); 85 virtual void LoadingStateChanged(TabContents* source);
85 virtual void CloseContents(TabContents* source); 86 virtual void CloseContents(TabContents* source);
86 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 87 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
87 virtual bool IsPopup(TabContents* source); 88 virtual bool IsPopup(TabContents* source);
88 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 89 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
89 virtual void URLStarredChanged(TabContents* source, bool starred); 90 virtual void URLStarredChanged(TabContents* source, bool starred);
90 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 91 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
91 92
92 // Overridden from NotificationObserver: 93 // Overridden from NotificationObserver:
93 virtual void Observe(NotificationType type, 94 virtual void Observe(NotificationType type,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 261
261 // Timer used to bring the window under the cursor to front. If the user 262 // Timer used to bring the window under the cursor to front. If the user
262 // stops moving the mouse for a brief time over a browser window, it is 263 // stops moving the mouse for a brief time over a browser window, it is
263 // brought to front. 264 // brought to front.
264 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; 265 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_;
265 266
266 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); 267 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk);
267 }; 268 };
268 269
269 #endif // CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ 270 #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