OLD | NEW |
---|---|
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 // PageNavigator defines an interface that can be used to express the user's | 5 // PageNavigator defines an interface that can be used to express the user's |
6 // intention to navigate to a particular URL. The implementing class should | 6 // intention to navigate to a particular URL. The implementing class should |
7 // perform the navigation. | 7 // perform the navigation. |
8 | 8 |
9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 GlobalRequestID transferred_global_request_id; | 76 GlobalRequestID transferred_global_request_id; |
77 | 77 |
78 // Indicates whether this navigation should replace the current | 78 // Indicates whether this navigation should replace the current |
79 // navigation entry. | 79 // navigation entry. |
80 bool should_replace_current_entry; | 80 bool should_replace_current_entry; |
81 | 81 |
82 // Indicates whether this navigation was triggered while processing a user | 82 // Indicates whether this navigation was triggered while processing a user |
83 // gesture if the navigation was initiated by the renderer. | 83 // gesture if the navigation was initiated by the renderer. |
84 bool user_gesture; | 84 bool user_gesture; |
85 | 85 |
86 bool is_transition_navigation; | |
jam
2014/07/01 16:14:15
ditto
| |
87 | |
86 private: | 88 private: |
87 OpenURLParams(); | 89 OpenURLParams(); |
88 }; | 90 }; |
89 | 91 |
90 class PageNavigator { | 92 class PageNavigator { |
91 public: | 93 public: |
92 virtual ~PageNavigator() {} | 94 virtual ~PageNavigator() {} |
93 | 95 |
94 // Opens a URL with the given disposition. The transition specifies how this | 96 // Opens a URL with the given disposition. The transition specifies how this |
95 // navigation should be recorded in the history system (for example, typed). | 97 // navigation should be recorded in the history system (for example, typed). |
96 // Returns the WebContents the URL is opened in, or NULL if the URL wasn't | 98 // Returns the WebContents the URL is opened in, or NULL if the URL wasn't |
97 // opened immediately. | 99 // opened immediately. |
98 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; | 100 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; |
99 }; | 101 }; |
100 | 102 |
101 } // namespace content | 103 } // namespace content |
102 | 104 |
103 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 105 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
OLD | NEW |