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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame_android.h

Issue 1560503002: Removing the code added to make chrome compile on Aura Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo delete of aura_android.gni - will delete in a separate CL. Created 4 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ANDROID_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ANDROID_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/views/frame/native_browser_frame.h"
11 #include "ui/aura/window_tree_host_platform.h"
12 #include "ui/views/widget/native_widget_aura.h"
13
14 class BrowserFrame;
15 class BrowserView;
16
17 ////////////////////////////////////////////////////////////////////////////////
18 // BrowserFrameAndroid
19 //
20 // BrowserFrameAndroid is a NativeWidgetAura subclass that provides the window
21 // frame for the Chrome browser window.
22 //
23 class BrowserFrameAndroid : public views::NativeWidgetAura,
24 public NativeBrowserFrame {
25 public:
26 static const char kWindowName[];
27
28 BrowserFrameAndroid(BrowserFrame* browser_frame, BrowserView* browser_view);
29
30 BrowserView* browser_view() const { return browser_view_; }
31
32 // Must be called before the browser frame is created.
33 static void SetHost(aura::WindowTreeHostPlatform* host);
34
35 protected:
36 // Overridden from views::NativeWidgetAura:
37 void OnWindowDestroying(aura::Window* window) override;
38
39 // Overridden from NativeBrowserFrame:
40 views::Widget::InitParams GetWidgetParams() override;
41 bool UseCustomFrame() const override;
42 bool UsesNativeSystemMenu() const override;
43 int GetMinimizeButtonOffset() const override;
44 bool ShouldSaveWindowPlacement() const override;
45 void GetWindowPlacement(gfx::Rect* bounds,
46 ui::WindowShowState* show_state) const override;
47
48 ~BrowserFrameAndroid() override;
49
50 private:
51 class WindowPropertyWatcher;
52
53 // The BrowserView is our ClientView. This is a pointer to it.
54 BrowserView* browser_view_;
55
56 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAndroid);
57 };
58
59 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_params.cc ('k') | chrome/browser/ui/views/frame/browser_frame_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698