| OLD | NEW |
| 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 #ifndef MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ | 5 #ifndef MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ |
| 6 #define MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ | 6 #define MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/view_manager/public/cpp/view_observer.h" | 10 #include "components/view_manager/public/cpp/view_observer.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Overridden from mojo::ViewObserver: | 51 // Overridden from mojo::ViewObserver: |
| 52 void OnViewBoundsChanged(mojo::View* view, | 52 void OnViewBoundsChanged(mojo::View* view, |
| 53 const mojo::Rect& old_bounds, | 53 const mojo::Rect& old_bounds, |
| 54 const mojo::Rect& new_bounds) override; | 54 const mojo::Rect& new_bounds) override; |
| 55 | 55 |
| 56 // Overridden from web_view::mojom::WebViewClient: | 56 // Overridden from web_view::mojom::WebViewClient: |
| 57 void TopLevelNavigate(mojo::URLRequestPtr request) override; | 57 void TopLevelNavigate(mojo::URLRequestPtr request) override; |
| 58 void LoadingStateChanged(bool is_loading) override; | 58 void LoadingStateChanged(bool is_loading) override; |
| 59 void ProgressChanged(double progress) override; | 59 void ProgressChanged(double progress) override; |
| 60 void BackForwardChanged(bool back_enabled, bool forward_enabled) override; |
| 60 void TitleChanged(const mojo::String& title) override; | 61 void TitleChanged(const mojo::String& title) override; |
| 61 | 62 |
| 62 // Overridden from mojo::InterfaceFactory<LaunchHandler>: | 63 // Overridden from mojo::InterfaceFactory<LaunchHandler>: |
| 63 void Create(mojo::ApplicationConnection* connection, | 64 void Create(mojo::ApplicationConnection* connection, |
| 64 mojo::InterfaceRequest<LaunchHandler> request) override; | 65 mojo::InterfaceRequest<LaunchHandler> request) override; |
| 65 | 66 |
| 66 mojo::ApplicationImpl* app_; | 67 mojo::ApplicationImpl* app_; |
| 67 mojo::ViewTreeHostPtr host_; | 68 mojo::ViewTreeHostPtr host_; |
| 68 | 69 |
| 69 mojo::View* root_; | 70 mojo::View* root_; |
| 70 mojo::View* content_; | 71 mojo::View* content_; |
| 71 web_view::WebView web_view_; | 72 web_view::WebView web_view_; |
| 72 | 73 |
| 73 mojo::String default_url_; | 74 mojo::String default_url_; |
| 74 | 75 |
| 75 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; | 76 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(PhoneBrowserApplicationDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(PhoneBrowserApplicationDelegate); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace mandoline | 81 } // namespace mandoline |
| 81 | 82 |
| 82 #endif // MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ | 83 #endif // MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ |
| OLD | NEW |