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

Side by Side Diff: chrome/browser/external_tab_container_win.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_EXTERNAL_TAB_CONTAINER_WIN_H_ 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 WindowOpenDisposition disposition, 110 WindowOpenDisposition disposition,
111 PageTransition::Type transition); 111 PageTransition::Type transition);
112 virtual void NavigationStateChanged(const TabContents* source, 112 virtual void NavigationStateChanged(const TabContents* source,
113 unsigned changed_flags); 113 unsigned changed_flags);
114 virtual void AddNewContents(TabContents* source, 114 virtual void AddNewContents(TabContents* source,
115 TabContents* new_contents, 115 TabContents* new_contents,
116 WindowOpenDisposition disposition, 116 WindowOpenDisposition disposition,
117 const gfx::Rect& initial_pos, 117 const gfx::Rect& initial_pos,
118 bool user_gesture); 118 bool user_gesture);
119 virtual void ActivateContents(TabContents* contents); 119 virtual void ActivateContents(TabContents* contents);
120 virtual void DeactivateContents(TabContents* contents);
120 virtual void LoadingStateChanged(TabContents* source); 121 virtual void LoadingStateChanged(TabContents* source);
121 virtual void CloseContents(TabContents* source); 122 virtual void CloseContents(TabContents* source);
122 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 123 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
123 virtual void URLStarredChanged(TabContents* source, bool starred); 124 virtual void URLStarredChanged(TabContents* source, bool starred);
124 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 125 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
125 virtual void ContentsZoomChange(bool zoom_in); 126 virtual void ContentsZoomChange(bool zoom_in);
126 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 127 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
127 virtual void ForwardMessageToExternalHost(const std::string& message, 128 virtual void ForwardMessageToExternalHost(const std::string& message,
128 const std::string& origin, 129 const std::string& origin,
129 const std::string& target); 130 const std::string& target);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 326
326 views::View* external_tab_view_; 327 views::View* external_tab_view_;
327 328
328 gfx::NativeWindow notification_window_; 329 gfx::NativeWindow notification_window_;
329 int notification_message_; 330 int notification_message_;
330 331
331 DISALLOW_COPY_AND_ASSIGN(ExternalTabContainer); 332 DISALLOW_COPY_AND_ASSIGN(ExternalTabContainer);
332 }; 333 };
333 334
334 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ 335 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc ('k') | chrome/browser/external_tab_container_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698