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

Side by Side Diff: mash/wm/non_client_frame_controller.h

Issue 1878303002: mash: Don't draw the window title under chrome tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | mash/wm/non_client_frame_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_ 5 #ifndef MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_
6 #define MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_ 6 #define MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 mus::Window* window, 51 mus::Window* window,
52 mus::WindowManagerClient* window_manager_client); 52 mus::WindowManagerClient* window_manager_client);
53 ~NonClientFrameController() override; 53 ~NonClientFrameController() override;
54 54
55 // views::WidgetDelegateView: 55 // views::WidgetDelegateView:
56 base::string16 GetWindowTitle() const override; 56 base::string16 GetWindowTitle() const override;
57 views::View* GetContentsView() override; 57 views::View* GetContentsView() override;
58 bool CanResize() const override; 58 bool CanResize() const override;
59 bool CanMaximize() const override; 59 bool CanMaximize() const override;
60 bool CanMinimize() const override; 60 bool CanMinimize() const override;
61 bool ShouldShowWindowTitle() const override;
61 views::ClientView* CreateClientView(views::Widget* widget) override; 62 views::ClientView* CreateClientView(views::Widget* widget) override;
62 63
63 // mus::WindowObserver: 64 // mus::WindowObserver:
64 void OnWindowSharedPropertyChanged( 65 void OnWindowSharedPropertyChanged(
65 mus::Window* window, 66 mus::Window* window,
66 const std::string& name, 67 const std::string& name,
67 const std::vector<uint8_t>* old_data, 68 const std::vector<uint8_t>* old_data,
68 const std::vector<uint8_t>* new_data) override; 69 const std::vector<uint8_t>* new_data) override;
69 void OnWindowDestroyed(mus::Window* window) override; 70 void OnWindowDestroyed(mus::Window* window) override;
70 71
71 views::Widget* widget_; 72 views::Widget* widget_;
72 73
73 // WARNING: as widget delays destruction there is a portion of time when this 74 // WARNING: as widget delays destruction there is a portion of time when this
74 // is null. 75 // is null.
75 mus::Window* window_; 76 mus::Window* window_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(NonClientFrameController); 78 DISALLOW_COPY_AND_ASSIGN(NonClientFrameController);
78 }; 79 };
79 80
80 } // namespace wm 81 } // namespace wm
81 } // namespace mash 82 } // namespace mash
82 83
83 #endif // MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_ 84 #endif // MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | mash/wm/non_client_frame_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698