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

Side by Side Diff: chrome/browser/ui/panels/panel.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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 | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/panels/panel.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 (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_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/ui/panels/panel_constants.h" 13 #include "chrome/browser/ui/panels/panel_constants.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 14 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
15 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
17 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 18
19 class NativePanel; 19 class NativePanel;
20 class PanelManager; 20 class PanelManager;
21 class PanelStrip; 21 class PanelStrip;
22 22
23 namespace extensions {
24 class Extension;
25 }
26
23 // A platform independent implementation of BrowserWindow for Panels. This 27 // A platform independent implementation of BrowserWindow for Panels. This
24 // class would get the first crack at all the BrowserWindow calls for Panels and 28 // class would get the first crack at all the BrowserWindow calls for Panels and
25 // do one or more of the following: 29 // do one or more of the following:
26 // - Do nothing. The function is not relevant to Panels. 30 // - Do nothing. The function is not relevant to Panels.
27 // - Throw an exceptions. The function shouldn't be called for Panels. 31 // - Throw an exceptions. The function shouldn't be called for Panels.
28 // - Do Panel specific platform independent processing and then invoke the 32 // - Do Panel specific platform independent processing and then invoke the
29 // function on the platform specific BrowserWindow member. For example, 33 // function on the platform specific BrowserWindow member. For example,
30 // Panel size is restricted to certain limits. 34 // Panel size is restricted to certain limits.
31 // - Invoke an appropriate PanelManager function to do stuff that might affect 35 // - Invoke an appropriate PanelManager function to do stuff that might affect
32 // other Panels. For example deleting a panel would rearrange other panels. 36 // other Panels. For example deleting a panel would rearrange other panels.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 bool show_history) OVERRIDE; 172 bool show_history) OVERRIDE;
169 virtual void ShowAppMenu() OVERRIDE; 173 virtual void ShowAppMenu() OVERRIDE;
170 virtual bool PreHandleKeyboardEvent( 174 virtual bool PreHandleKeyboardEvent(
171 const content::NativeWebKeyboardEvent& event, 175 const content::NativeWebKeyboardEvent& event,
172 bool* is_keyboard_shortcut) OVERRIDE; 176 bool* is_keyboard_shortcut) OVERRIDE;
173 virtual void HandleKeyboardEvent( 177 virtual void HandleKeyboardEvent(
174 const content::NativeWebKeyboardEvent& event) OVERRIDE; 178 const content::NativeWebKeyboardEvent& event) OVERRIDE;
175 virtual void ShowCreateWebAppShortcutsDialog( 179 virtual void ShowCreateWebAppShortcutsDialog(
176 TabContentsWrapper* tab_contents) OVERRIDE; 180 TabContentsWrapper* tab_contents) OVERRIDE;
177 virtual void ShowCreateChromeAppShortcutsDialog( 181 virtual void ShowCreateChromeAppShortcutsDialog(
178 Profile* profile, const Extension* app) OVERRIDE; 182 Profile* profile, const extensions::Extension* app) OVERRIDE;
179 virtual void Cut() OVERRIDE; 183 virtual void Cut() OVERRIDE;
180 virtual void Copy() OVERRIDE; 184 virtual void Copy() OVERRIDE;
181 virtual void Paste() OVERRIDE; 185 virtual void Paste() OVERRIDE;
182 #if defined(OS_MACOSX) 186 #if defined(OS_MACOSX)
183 virtual void OpenTabpose() OVERRIDE; 187 virtual void OpenTabpose() OVERRIDE;
184 virtual void EnterPresentationMode( 188 virtual void EnterPresentationMode(
185 const GURL& url, 189 const GURL& url,
186 FullscreenExitBubbleType bubble_type) OVERRIDE; 190 FullscreenExitBubbleType bubble_type) OVERRIDE;
187 virtual void ExitPresentationMode() OVERRIDE; 191 virtual void ExitPresentationMode() OVERRIDE;
188 virtual bool InPresentationMode() OVERRIDE; 192 virtual bool InPresentationMode() OVERRIDE;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 AttentionMode attention_mode_; 391 AttentionMode attention_mode_;
388 392
389 ExpansionState expansion_state_; 393 ExpansionState expansion_state_;
390 394
391 content::NotificationRegistrar registrar_; 395 content::NotificationRegistrar registrar_;
392 396
393 DISALLOW_COPY_AND_ASSIGN(Panel); 397 DISALLOW_COPY_AND_ASSIGN(Panel);
394 }; 398 };
395 399
396 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 400 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698