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

Side by Side Diff: services/navigation/public/cpp/view.h

Issue 2057023002: Adds support for new-tab targeted loads initiated from the renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
« no previous file with comments | « services/navigation/navigation_unittest.cc ('k') | services/navigation/public/cpp/view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ 5 #ifndef SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_
6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ 6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "mojo/public/cpp/bindings/binding.h" 10 #include "mojo/public/cpp/bindings/binding.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // When non-empty, specifies the size of an area in the bottom corner of the 69 // When non-empty, specifies the size of an area in the bottom corner of the
70 // View that should allow the enclosing top-level window to be resized via the 70 // View that should allow the enclosing top-level window to be resized via the
71 // pointer. 71 // pointer.
72 void SetResizerSize(const gfx::Size& size); 72 void SetResizerSize(const gfx::Size& size);
73 73
74 // Embed the View visually within |parent|. 74 // Embed the View visually within |parent|.
75 void EmbedInWindow(mus::Window* parent); 75 void EmbedInWindow(mus::Window* parent);
76 76
77 private: 77 private:
78 // mojom::ViewClient: 78 // mojom::ViewClient:
79 void OpenURL(mojom::OpenURLParamsPtr params) override;
79 void LoadingStateChanged(bool is_loading) override; 80 void LoadingStateChanged(bool is_loading) override;
80 void NavigationStateChanged(const GURL& url, 81 void NavigationStateChanged(const GURL& url,
81 const mojo::String& title, 82 const mojo::String& title,
82 bool can_go_back, 83 bool can_go_back,
83 bool can_go_forward) override; 84 bool can_go_forward) override;
84 void LoadProgressChanged(double progress) override; 85 void LoadProgressChanged(double progress) override;
85 void UpdateHoverURL(const GURL& url) override; 86 void UpdateHoverURL(const GURL& url) override;
86 void ViewCreated(mojom::ViewPtr view, 87 void ViewCreated(mojom::ViewPtr view,
87 mojom::ViewClientRequest request, 88 mojom::ViewClientRequest request,
88 bool is_popup, 89 bool is_popup,
(...skipping 20 matching lines...) Expand all
109 bool can_go_forward_ = false; 110 bool can_go_forward_ = false;
110 111
111 mojom::NavigationEntryPtr pending_navigation_; 112 mojom::NavigationEntryPtr pending_navigation_;
112 std::vector<mojom::NavigationEntryPtr> navigation_list_; 113 std::vector<mojom::NavigationEntryPtr> navigation_list_;
113 int navigation_list_cursor_ = 0; 114 int navigation_list_cursor_ = 0;
114 }; 115 };
115 116
116 } // namespace navigation 117 } // namespace navigation
117 118
118 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ 119 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_
OLDNEW
« no previous file with comments | « services/navigation/navigation_unittest.cc ('k') | services/navigation/public/cpp/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698