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

Side by Side Diff: extensions/components/native_app_window/native_app_window_views.h

Issue 2390953004: WidgetDelegateView is its own contents view. (Closed)
Patch Set: another minor fix Created 4 years, 2 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 EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
6 #define EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool CanMaximize() const override; 105 bool CanMaximize() const override;
106 bool CanMinimize() const override; 106 bool CanMinimize() const override;
107 base::string16 GetWindowTitle() const override; 107 base::string16 GetWindowTitle() const override;
108 bool ShouldShowWindowTitle() const override; 108 bool ShouldShowWindowTitle() const override;
109 bool ShouldShowWindowIcon() const override; 109 bool ShouldShowWindowIcon() const override;
110 void SaveWindowPlacement(const gfx::Rect& bounds, 110 void SaveWindowPlacement(const gfx::Rect& bounds,
111 ui::WindowShowState show_state) override; 111 ui::WindowShowState show_state) override;
112 void DeleteDelegate() override; 112 void DeleteDelegate() override;
113 views::Widget* GetWidget() override; 113 views::Widget* GetWidget() override;
114 const views::Widget* GetWidget() const override; 114 const views::Widget* GetWidget() const override;
115 views::View* GetContentsView() override;
116 bool ShouldDescendIntoChildForEventHandling( 115 bool ShouldDescendIntoChildForEventHandling(
117 gfx::NativeView child, 116 gfx::NativeView child,
118 const gfx::Point& location) override; 117 const gfx::Point& location) override;
119 118
120 // WidgetObserver implementation. 119 // WidgetObserver implementation.
121 void OnWidgetDestroying(views::Widget* widget) override; 120 void OnWidgetDestroying(views::Widget* widget) override;
122 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override; 121 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override;
123 void OnWidgetActivationChanged(views::Widget* widget, bool active) override; 122 void OnWidgetActivationChanged(views::Widget* widget, bool active) override;
124 123
125 // WebContentsObserver implementation. 124 // WebContentsObserver implementation.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 183 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
185 184
186 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_; 185 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_;
187 186
188 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 187 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
189 }; 188 };
190 189
191 } // namespace native_app_window 190 } // namespace native_app_window
192 191
193 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ 192 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698