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

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

Issue 297123002: API proposal for chrome.app.window to intercept all keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 6 years 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 "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "extensions/browser/app_window/app_window.h" 10 #include "extensions/browser/app_window/app_window.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // NativeAppWindow implementation. 134 // NativeAppWindow implementation.
135 void SetFullscreen(int fullscreen_types) override; 135 void SetFullscreen(int fullscreen_types) override;
136 bool IsFullscreenOrPending() const override; 136 bool IsFullscreenOrPending() const override;
137 void UpdateWindowIcon() override; 137 void UpdateWindowIcon() override;
138 void UpdateWindowTitle() override; 138 void UpdateWindowTitle() override;
139 void UpdateBadgeIcon() override; 139 void UpdateBadgeIcon() override;
140 void UpdateDraggableRegions( 140 void UpdateDraggableRegions(
141 const std::vector<extensions::DraggableRegion>& regions) override; 141 const std::vector<extensions::DraggableRegion>& regions) override;
142 SkRegion* GetDraggableRegion() override; 142 SkRegion* GetDraggableRegion() override;
143 void UpdateShape(scoped_ptr<SkRegion> region) override; 143 void UpdateShape(scoped_ptr<SkRegion> region) override;
144 void SetInterceptAllKeys(bool want_all_keys) override;
144 void HandleKeyboardEvent( 145 void HandleKeyboardEvent(
145 const content::NativeWebKeyboardEvent& event) override; 146 const content::NativeWebKeyboardEvent& event) override;
146 bool IsFrameless() const override; 147 bool IsFrameless() const override;
147 bool HasFrameColor() const override; 148 bool HasFrameColor() const override;
148 SkColor ActiveFrameColor() const override; 149 SkColor ActiveFrameColor() const override;
149 SkColor InactiveFrameColor() const override; 150 SkColor InactiveFrameColor() const override;
150 gfx::Insets GetFrameInsets() const override; 151 gfx::Insets GetFrameInsets() const override;
151 void HideWithApp() override; 152 void HideWithApp() override;
152 void ShowWithApp() override; 153 void ShowWithApp() override;
153 void UpdateShelfMenu() override; 154 void UpdateShelfMenu() override;
(...skipping 28 matching lines...) Expand all
182 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 183 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
183 184
184 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; 185 ObserverList<web_modal::ModalDialogHostObserver> observer_list_;
185 186
186 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 187 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
187 }; 188 };
188 189
189 } // namespace native_app_window 190 } // namespace native_app_window
190 191
191 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ 192 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW
« no previous file with comments | « extensions/common/permissions/permission_message.h ('k') | extensions/components/native_app_window/native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698