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

Side by Side Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.h

Issue 213743017: Remove title and icon from chrome apps native style title bars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nicer Created 6 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include "apps/ui/views/native_app_window_views.h" 8 #include "apps/ui/views/native_app_window_views.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/context_menu_controller.h" 10 #include "ui/views/context_menu_controller.h"
(...skipping 21 matching lines...) Expand all
32 protected: 32 protected:
33 // Called before views::Widget::Init() to allow subclasses to customize 33 // Called before views::Widget::Init() to allow subclasses to customize
34 // the InitParams that would be passed. 34 // the InitParams that would be passed.
35 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params, 35 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params,
36 views::Widget* widget); 36 views::Widget* widget);
37 37
38 virtual void InitializeDefaultWindow( 38 virtual void InitializeDefaultWindow(
39 const apps::AppWindow::CreateParams& create_params); 39 const apps::AppWindow::CreateParams& create_params);
40 virtual void InitializePanelWindow( 40 virtual void InitializePanelWindow(
41 const apps::AppWindow::CreateParams& create_params); 41 const apps::AppWindow::CreateParams& create_params);
42 virtual views::NonClientFrameView* CreateStandardAppWindowFrame();
43 virtual apps::AppWindowFrameView* CreateNonStandardAppWindowFrame();
42 44
43 private: 45 private:
44 FRIEND_TEST_ALL_PREFIXES(ShapedAppWindowTargeterTest, 46 FRIEND_TEST_ALL_PREFIXES(ShapedAppWindowTargeterTest,
45 ResizeInsetsWithinBounds); 47 ResizeInsetsWithinBounds);
46 48
47 // Installs an EasyResizeWindowTargeter on the containing window, which
48 // allows the window to be resized from within |kResizeInsideBoundsSize|
49 // pixels inside the window bounds.
50 void InstallEasyResizeTargeterOnContainer() const;
51
52 // Caller owns the returned object.
53 apps::AppWindowFrameView* CreateAppWindowFrameView();
54
55 // ui::BaseWindow implementation. 49 // ui::BaseWindow implementation.
56 virtual ui::WindowShowState GetRestoredState() const OVERRIDE; 50 virtual ui::WindowShowState GetRestoredState() const OVERRIDE;
57 virtual bool IsAlwaysOnTop() const OVERRIDE; 51 virtual bool IsAlwaysOnTop() const OVERRIDE;
58 52
59 // Overridden from views::ContextMenuController: 53 // Overridden from views::ContextMenuController:
60 virtual void ShowContextMenuForView(views::View* source, 54 virtual void ShowContextMenuForView(views::View* source,
61 const gfx::Point& p, 55 const gfx::Point& p,
62 ui::MenuSourceType source_type) OVERRIDE; 56 ui::MenuSourceType source_type) OVERRIDE;
63 57
64 // WidgetDelegate implementation. 58 // WidgetDelegate implementation.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 immersive_fullscreen_controller_; 104 immersive_fullscreen_controller_;
111 #endif // defined(USE_ASH) 105 #endif // defined(USE_ASH)
112 106
113 // Used to show the system menu. 107 // Used to show the system menu.
114 scoped_ptr<views::MenuRunner> menu_runner_; 108 scoped_ptr<views::MenuRunner> menu_runner_;
115 109
116 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); 110 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews);
117 }; 111 };
118 112
119 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ 113 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698