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

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

Issue 210363004: Linux: App windows with frame: chrome and no color are now native. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't need not IsFrameless(); that is implied by has_frame_color_. Created 6 years, 9 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 | Annotate | Revision Log
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 26 matching lines...) Expand all
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 42
43 private: 43 private:
44 FRIEND_TEST_ALL_PREFIXES(ShapedAppWindowTargeterTest, 44 FRIEND_TEST_ALL_PREFIXES(ShapedAppWindowTargeterTest,
45 ResizeInsetsWithinBounds); 45 ResizeInsetsWithinBounds);
46 46
47 bool ShouldUseNativeFrame() const;
48
49 // Installs an EasyResizeWindowTargeter on the containing window, which 47 // Installs an EasyResizeWindowTargeter on the containing window, which
50 // allows the window to be resized from within |kResizeInsideBoundsSize| 48 // allows the window to be resized from within |kResizeInsideBoundsSize|
51 // pixels inside the window bounds. 49 // pixels inside the window bounds.
52 void InstallEasyResizeTargeterOnContainer() const; 50 void InstallEasyResizeTargeterOnContainer() const;
53 51
54 // Caller owns the returned object. 52 // Caller owns the returned object.
55 apps::AppWindowFrameView* CreateAppWindowFrameView(); 53 apps::AppWindowFrameView* CreateAppWindowFrameView();
56 54
57 // ui::BaseWindow implementation. 55 // ui::BaseWindow implementation.
58 virtual ui::WindowShowState GetRestoredState() const OVERRIDE; 56 virtual ui::WindowShowState GetRestoredState() const OVERRIDE;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 immersive_fullscreen_controller_; 110 immersive_fullscreen_controller_;
113 #endif // defined(USE_ASH) 111 #endif // defined(USE_ASH)
114 112
115 // Used to show the system menu. 113 // Used to show the system menu.
116 scoped_ptr<views::MenuRunner> menu_runner_; 114 scoped_ptr<views::MenuRunner> menu_runner_;
117 115
118 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); 116 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews);
119 }; 117 };
120 118
121 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ 119 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW
« no previous file with comments | « apps/ui/views/app_window_frame_view.cc ('k') | chrome/browser/ui/views/apps/chrome_native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698