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

Side by Side Diff: chrome/browser/ui/views/extensions/native_app_window_views.h

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include "chrome/browser/ui/base_window.h" 8 #include "chrome/browser/ui/base_window.h"
9 #include "chrome/browser/ui/extensions/native_app_window.h" 9 #include "chrome/browser/ui/extensions/native_app_window.h"
10 #include "chrome/browser/ui/extensions/shell_window.h" 10 #include "chrome/browser/ui/extensions/shell_window.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // NativeAppWindow implementation. 106 // NativeAppWindow implementation.
107 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 107 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
108 virtual bool IsFullscreenOrPending() const OVERRIDE; 108 virtual bool IsFullscreenOrPending() const OVERRIDE;
109 virtual void UpdateWindowIcon() OVERRIDE; 109 virtual void UpdateWindowIcon() OVERRIDE;
110 virtual void UpdateWindowTitle() OVERRIDE; 110 virtual void UpdateWindowTitle() OVERRIDE;
111 virtual void UpdateDraggableRegions( 111 virtual void UpdateDraggableRegions(
112 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 112 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
113 virtual void HandleKeyboardEvent( 113 virtual void HandleKeyboardEvent(
114 const content::NativeWebKeyboardEvent& event) OVERRIDE; 114 const content::NativeWebKeyboardEvent& event) OVERRIDE;
115 virtual void RenderViewHostChanged() OVERRIDE; 115 virtual void RenderViewHostChanged() OVERRIDE;
116 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
116 117
117 Profile* profile() { return shell_window_->profile(); } 118 Profile* profile() { return shell_window_->profile(); }
118 content::WebContents* web_contents() { 119 content::WebContents* web_contents() {
119 return shell_window_->web_contents(); 120 return shell_window_->web_contents();
120 } 121 }
121 const extensions::Extension* extension() { 122 const extensions::Extension* extension() {
122 return shell_window_->extension(); 123 return shell_window_->extension();
123 } 124 }
124 125
125 ShellWindow* shell_window_; // weak - ShellWindow owns NativeAppWindow. 126 ShellWindow* shell_window_; // weak - ShellWindow owns NativeAppWindow.
(...skipping 10 matching lines...) Expand all
136 137
137 // The class that registers for keyboard shortcuts for extension commands. 138 // The class that registers for keyboard shortcuts for extension commands.
138 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; 139 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_;
139 140
140 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 141 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 143 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
143 }; 144 };
144 145
145 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ 146 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698