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

Side by Side Diff: chrome/browser/ui/extensions/native_shell_window.h

Issue 11028125: Remove legacy draggable region code and refactor to share common draggable region code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 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 | 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_EXTENSIONS_NATIVE_SHELL_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_
7 7
8 #include "chrome/browser/ui/extensions/shell_window.h" 8 #include "chrome/browser/ui/extensions/shell_window.h"
9 #include "chrome/browser/ui/base_window.h" 9 #include "chrome/browser/ui/base_window.h"
10 10
11 // This is an interface to a native implementation of a shell window, used for 11 // This is an interface to a native implementation of a shell window, used for
12 // new-style packaged apps. Shell windows contain a web contents, but no tabs 12 // new-style packaged apps. Shell windows contain a web contents, but no tabs
13 // or URL bar. 13 // or URL bar.
14 class NativeShellWindow : public BaseWindow { 14 class NativeShellWindow : public BaseWindow {
15 public: 15 public:
16 // Used by ShellWindow to instantiate the platform-specific ShellWindow code. 16 // Used by ShellWindow to instantiate the platform-specific ShellWindow code.
17 static NativeShellWindow* Create(ShellWindow* window, 17 static NativeShellWindow* Create(ShellWindow* window,
18 const ShellWindow::CreateParams& params); 18 const ShellWindow::CreateParams& params);
19 19
20 // Called when the draggable regions are changed. 20 // Called when the draggable regions are changed.
21 virtual void UpdateDraggableRegions( 21 virtual void UpdateDraggableRegions(
22 const std::vector<extensions::DraggableRegion>& regions) {} 22 const std::vector<extensions::DraggableRegion>& regions) = 0;
23
24 // Called when the draggable regions with the old syntax are changed.
25 // TODO(jianli): to be removed after WebKit patch that changes the draggable
26 // region syntax is landed.
27 virtual void UpdateLegacyDraggableRegions(
28 const std::vector<extensions::DraggableRegion>& regions) {}
29 23
30 virtual void SetFullscreen(bool fullscreen) = 0; 24 virtual void SetFullscreen(bool fullscreen) = 0;
31 virtual bool IsFullscreenOrPending() const = 0; 25 virtual bool IsFullscreenOrPending() const = 0;
32 26
33 // Called when the icon of the window changes. 27 // Called when the icon of the window changes.
34 virtual void UpdateWindowIcon() = 0; 28 virtual void UpdateWindowIcon() = 0;
35 29
36 // Called when the title of the window changes. 30 // Called when the title of the window changes.
37 virtual void UpdateWindowTitle() = 0; 31 virtual void UpdateWindowTitle() = 0;
38 32
39 // Allows the window to handle unhandled keyboard messages coming back from 33 // Allows the window to handle unhandled keyboard messages coming back from
40 // the renderer. 34 // the renderer.
41 virtual void HandleKeyboardEvent( 35 virtual void HandleKeyboardEvent(
42 const content::NativeWebKeyboardEvent& event) = 0; 36 const content::NativeWebKeyboardEvent& event) = 0;
43 37
44 virtual ~NativeShellWindow() {} 38 virtual ~NativeShellWindow() {}
45 }; 39 };
46 40
47 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_ 41 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm ('k') | chrome/browser/ui/extensions/shell_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698