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

Side by Side Diff: chrome/browser/webview/webview_guest.h

Issue 17447005: <webview>: Move back, forward, canGoBack, canGoForward, go from content to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@filter_listener
Patch Set: Merge against latest changes in other CL Created 7 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEBVIEW_WEBVIEW_GUEST_H_ 5 #ifndef CHROME_BROWSER_WEBVIEW_WEBVIEW_GUEST_H_
6 #define CHROME_BROWSER_WEBVIEW_WEBVIEW_GUEST_H_ 6 #define CHROME_BROWSER_WEBVIEW_WEBVIEW_GUEST_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "chrome/browser/extensions/tab_helper.h" 9 #include "chrome/browser/extensions/tab_helper.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 21 matching lines...) Expand all
32 static WebViewGuest* From(int embedder_process_id, int instance_id); 32 static WebViewGuest* From(int embedder_process_id, int instance_id);
33 33
34 content::WebContents* embedder_web_contents() const { 34 content::WebContents* embedder_web_contents() const {
35 return embedder_web_contents_; 35 return embedder_web_contents_;
36 } 36 }
37 37
38 content::WebContents* web_contents() const { 38 content::WebContents* web_contents() const {
39 return WebContentsObserver::web_contents(); 39 return WebContentsObserver::web_contents();
40 } 40 }
41 41
42 // If possible, navigate the guest to |relative_index| entries away from the
43 // current navigation entry.
44 void Go(int relative_index);
45
42 int instance_id() const { return webview_instance_id_; } 46 int instance_id() const { return webview_instance_id_; }
43 47
44 extensions::ScriptExecutor* script_executor() { 48 extensions::ScriptExecutor* script_executor() {
45 return script_executor_.get(); 49 return script_executor_.get();
46 } 50 }
47 51
48 private: 52 private:
49 virtual ~WebViewGuest(); 53 virtual ~WebViewGuest();
50 54
51 void DispatchEvent(const std::string& event_name, 55 void DispatchEvent(const std::string& event_name,
(...skipping 29 matching lines...) Expand all
81 script_observers_; 85 script_observers_;
82 scoped_ptr<extensions::ScriptExecutor> script_executor_; 86 scoped_ptr<extensions::ScriptExecutor> script_executor_;
83 87
84 88
85 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 89 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
86 }; 90 };
87 91
88 } // namespace chrome 92 } // namespace chrome
89 93
90 #endif // CHROME_BROWSER_WEBVIEW_WEBVIEW_GUEST_H_ 94 #endif // CHROME_BROWSER_WEBVIEW_WEBVIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698