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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 1135693006: Fix X11DesktopHandler::ActivateWindow on Unity for known user gestures Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // unchanged otherwise. 99 // unchanged otherwise.
100 virtual void AddNewContents(WebContents* source, 100 virtual void AddNewContents(WebContents* source,
101 WebContents* new_contents, 101 WebContents* new_contents,
102 WindowOpenDisposition disposition, 102 WindowOpenDisposition disposition,
103 const gfx::Rect& initial_rect, 103 const gfx::Rect& initial_rect,
104 bool user_gesture, 104 bool user_gesture,
105 bool* was_blocked) {} 105 bool* was_blocked) {}
106 106
107 // Selects the specified contents, bringing its container to the front. 107 // Selects the specified contents, bringing its container to the front.
108 virtual void ActivateContents(WebContents* contents) {} 108 virtual void ActivateContents(WebContents* contents) {}
109 // Like ActivateContents, but some window managers will give higher priority.
110 virtual void ActivateContentsForUserGesture(WebContents* contents);
Avi (use Gerrit) 2015/05/18 14:59:22 There's a lot of duplicate code in some of these f
109 111
110 // Deactivates the specified contents by deactivating its container and 112 // Deactivates the specified contents by deactivating its container and
111 // potentialy moving it to the back of the Z order. 113 // potentialy moving it to the back of the Z order.
112 virtual void DeactivateContents(WebContents* contents) {} 114 virtual void DeactivateContents(WebContents* contents) {}
113 115
114 // Notifies the delegate that this contents is starting or is done loading 116 // Notifies the delegate that this contents is starting or is done loading
115 // some resource. The delegate should use this notification to represent 117 // some resource. The delegate should use this notification to represent
116 // loading feedback. See WebContents::IsLoading() 118 // loading feedback. See WebContents::IsLoading()
117 // |to_different_document| will be true unless the load is a fragment 119 // |to_different_document| will be true unless the load is a fragment
118 // navigation, or triggered by history.pushState/replaceState. 120 // navigation, or triggered by history.pushState/replaceState.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 // Called when |this| is no longer the WebContentsDelegate for |source|. 500 // Called when |this| is no longer the WebContentsDelegate for |source|.
499 void Detach(WebContents* source); 501 void Detach(WebContents* source);
500 502
501 // The WebContents that this is currently a delegate for. 503 // The WebContents that this is currently a delegate for.
502 std::set<WebContents*> attached_contents_; 504 std::set<WebContents*> attached_contents_;
503 }; 505 };
504 506
505 } // namespace content 507 } // namespace content
506 508
507 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 509 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698