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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_popup.cc

Issue 7648043: Include chromeos_wm_ipc_enums.h from third_party/cros_system_api. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix check_deps failure Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/views/bubble/bubble.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/views/extensions/extension_popup.h" 5 #include "chrome/browser/ui/views/extensions/extension_popup.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "chrome/browser/debugger/devtools_window.h" 9 #include "chrome/browser/debugger/devtools_window.h"
10 #include "chrome/browser/extensions/extension_host.h" 10 #include "chrome/browser/extensions/extension_host.h"
11 #include "chrome/browser/extensions/extension_process_manager.h" 11 #include "chrome/browser/extensions/extension_process_manager.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/browser_window.h" 14 #include "chrome/browser/ui/browser_window.h"
15 #include "chrome/browser/ui/views/frame/browser_view.h" 15 #include "chrome/browser/ui/views/frame/browser_view.h"
16 #include "chrome/common/chrome_notification_types.h" 16 #include "chrome/common/chrome_notification_types.h"
17 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
18 #include "content/browser/renderer_host/render_view_host.h" 18 #include "content/browser/renderer_host/render_view_host.h"
19 #include "content/browser/renderer_host/render_widget_host_view.h" 19 #include "content/browser/renderer_host/render_widget_host_view.h"
20 #include "content/common/notification_details.h" 20 #include "content/common/notification_details.h"
21 #include "content/common/notification_source.h" 21 #include "content/common/notification_source.h"
22 #include "views/widget/root_view.h" 22 #include "views/widget/root_view.h"
23 #include "views/widget/widget.h" 23 #include "views/widget/widget.h"
24 24
25 #if defined(OS_CHROMEOS) 25 #if defined(OS_CHROMEOS)
26 #include "chrome/browser/chromeos/wm_ipc.h" 26 #include "chrome/browser/chromeos/wm_ipc.h"
27 #include "third_party/cros/chromeos_wm_ipc_enums.h" 27 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h"
28 #endif 28 #endif
29 29
30 using std::vector; 30 using std::vector;
31 using views::Widget; 31 using views::Widget;
32 32
33 // The minimum/maximum dimensions of the popup. 33 // The minimum/maximum dimensions of the popup.
34 // The minimum is just a little larger than the size of the button itself. 34 // The minimum is just a little larger than the size of the button itself.
35 // The maximum is an arbitrary number that should be smaller than most screens. 35 // The maximum is an arbitrary number that should be smaller than most screens.
36 const int ExtensionPopup::kMinWidth = 25; 36 const int ExtensionPopup::kMinWidth = 25;
37 const int ExtensionPopup::kMinHeight = 25; 37 const int ExtensionPopup::kMinHeight = 25;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 if (closing_) 204 if (closing_)
205 return; 205 return;
206 closing_ = true; 206 closing_ = true;
207 DetachFromBrowser(); 207 DetachFromBrowser();
208 208
209 if (observer_) 209 if (observer_)
210 observer_->ExtensionPopupIsClosing(this); 210 observer_->ExtensionPopupIsClosing(this);
211 211
212 Release(); // Balanced in ctor. 212 Release(); // Balanced in ctor.
213 } 213 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bubble/bubble.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698