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

Unified Diff: mandoline/ui/browser/android/android_ui.h

Issue 1141453002: Makes browser resize content when root bounds change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to androidui Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mandoline/ui/browser/android/android_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/browser/android/android_ui.h
diff --git a/mandoline/ui/browser/android/android_ui.h b/mandoline/ui/browser/android/android_ui.h
index f3fd97518dfc0c6348fe443a95f6a731faeb4ac9..e63a37f235e853bb1e478daceda82e44adbe2f89 100644
--- a/mandoline/ui/browser/android/android_ui.h
+++ b/mandoline/ui/browser/android/android_ui.h
@@ -6,6 +6,7 @@
#define MANDOLINE_UI_BROWSER_ANDROID_ANDROID_UI_H_
#include "base/macros.h"
+#include "components/view_manager/public/cpp/view_observer.h"
#include "mandoline/ui/browser/browser_ui.h"
namespace mojo {
@@ -17,7 +18,8 @@ namespace mandoline {
class Browser;
-class AndroidUI : public BrowserUI {
+class AndroidUI : public BrowserUI,
+ public mojo::ViewObserver {
public:
AndroidUI(Browser* browser, mojo::Shell* shell);
~AndroidUI() override;
@@ -26,6 +28,11 @@ class AndroidUI : public BrowserUI {
// Overridden from BrowserUI:
void Init(mojo::View* root, mojo::View* content) override;
+ // Overriden from mojo::ViewObserver:
+ virtual void OnViewBoundsChanged(mojo::View* view,
+ const mojo::Rect& old_bounds,
+ const mojo::Rect& new_bounds) override;
+
Browser* browser_;
mojo::Shell* shell_;
mojo::View* root_;
« no previous file with comments | « no previous file | mandoline/ui/browser/android/android_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698