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

Side by Side Diff: mandoline/ui/phone_ui/phone_browser_application_delegate.cc

Issue 1350223005: mandoline: Make sure omnibox gets updated when navigating back/forwards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot.merge Created 5 years, 2 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 | « mandoline/ui/phone_ui/phone_browser_application_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "mandoline/ui/phone_ui/phone_browser_application_delegate.h" 5 #include "mandoline/ui/phone_ui/phone_browser_application_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/mus/public/cpp/view.h" 8 #include "components/mus/public/cpp/view.h"
9 #include "components/mus/public/cpp/view_tree_connection.h" 9 #include "components/mus/public/cpp/view_tree_connection.h"
10 #include "components/mus/public/cpp/view_tree_host_factory.h" 10 #include "components/mus/public/cpp/view_tree_host_factory.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const mojo::Rect& new_bounds) { 94 const mojo::Rect& new_bounds) {
95 CHECK_EQ(view, root_); 95 CHECK_EQ(view, root_);
96 content_->SetBounds( 96 content_->SetBounds(
97 *mojo::Rect::From(gfx::Rect(0, 0, new_bounds.width, new_bounds.height))); 97 *mojo::Rect::From(gfx::Rect(0, 0, new_bounds.width, new_bounds.height)));
98 } 98 }
99 99
100 //////////////////////////////////////////////////////////////////////////////// 100 ////////////////////////////////////////////////////////////////////////////////
101 // PhoneBrowserApplicationDelegate, 101 // PhoneBrowserApplicationDelegate,
102 // web_view::mojom::WebViewClient implementation: 102 // web_view::mojom::WebViewClient implementation:
103 103
104 void PhoneBrowserApplicationDelegate::TopLevelNavigate( 104 void PhoneBrowserApplicationDelegate::TopLevelNavigateRequest(
105 mojo::URLRequestPtr request) { 105 mojo::URLRequestPtr request) {
106 web_view_.web_view()->LoadRequest(request.Pass()); 106 web_view_.web_view()->LoadRequest(request.Pass());
107 } 107 }
108 108
109 void PhoneBrowserApplicationDelegate::TopLevelNavigationStarted(
110 const mojo::String& url) {}
109 void PhoneBrowserApplicationDelegate::LoadingStateChanged(bool is_loading, 111 void PhoneBrowserApplicationDelegate::LoadingStateChanged(bool is_loading,
110 double progress) {} 112 double progress) {}
111 113
112 void PhoneBrowserApplicationDelegate::BackForwardChanged( 114 void PhoneBrowserApplicationDelegate::BackForwardChanged(
113 web_view::mojom::ButtonState back_button, 115 web_view::mojom::ButtonState back_button,
114 web_view::mojom::ButtonState forward_button) { 116 web_view::mojom::ButtonState forward_button) {
115 // ... 117 // ...
116 } 118 }
117 119
118 void PhoneBrowserApplicationDelegate::TitleChanged(const mojo::String& title) { 120 void PhoneBrowserApplicationDelegate::TitleChanged(const mojo::String& title) {
119 // ... 121 // ...
120 } 122 }
121 123
122 //////////////////////////////////////////////////////////////////////////////// 124 ////////////////////////////////////////////////////////////////////////////////
123 // PhoneBrowserApplicationDelegate, 125 // PhoneBrowserApplicationDelegate,
124 // mojo::InterfaceFactory<LaunchHandler> implementation: 126 // mojo::InterfaceFactory<LaunchHandler> implementation:
125 127
126 void PhoneBrowserApplicationDelegate::Create( 128 void PhoneBrowserApplicationDelegate::Create(
127 mojo::ApplicationConnection* connection, 129 mojo::ApplicationConnection* connection,
128 mojo::InterfaceRequest<LaunchHandler> request) { 130 mojo::InterfaceRequest<LaunchHandler> request) {
129 launch_handler_bindings_.AddBinding(this, request.Pass()); 131 launch_handler_bindings_.AddBinding(this, request.Pass());
130 } 132 }
131 133
132 } // namespace mandoline 134 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/ui/phone_ui/phone_browser_application_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698