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

Unified Diff: chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h

Issue 794853004: Reland 1: "mac: Allow Chrome to hand off its active URL to other devices." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from avi. Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/handoff_active_url_observer_bridge.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h
diff --git a/chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h b/chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..d0d0fffca1206cb44801436acc53a6eee792e5c5
--- /dev/null
+++ b/chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_
+#define CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_
+
+namespace content {
+class WebContents;
+}
+
+// The delegate for a HandoffActiveURLObserver.
+class HandoffActiveURLObserverDelegate {
+ public:
+ // Called when:
+ // 1. The most recently focused browser changes.
+ // 2. The active tab of the browser changes.
+ // 3. After a navigation of the web contents of the active tab.
+ // |web_contents| is the WebContents whose VisibleURL is considered the
+ // "Active URL" of Chrome.
+ virtual void HandoffActiveURLChanged(content::WebContents* web_contents) = 0;
+
+ protected:
+ virtual ~HandoffActiveURLObserverDelegate(){};
+};
+
+#endif // CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/cocoa/handoff_active_url_observer_bridge.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698