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

Side by Side Diff: chrome/browser/views/blocked_popup_container.cc

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 // Implementation of BlockedPopupContainer and its corresponding View 5 // Implementation of BlockedPopupContainer and its corresponding View
6 // class. The BlockedPopupContainer is the sort of Model class which owns the 6 // class. The BlockedPopupContainer is the sort of Model class which owns the
7 // blocked popups' TabContents (but like most Chromium interface code, it there 7 // blocked popups' TabContents (but like most Chromium interface code, it there
8 // isn't a strict Model/View separation), and BlockedPopupContainerView 8 // isn't a strict Model/View separation), and BlockedPopupContainerView
9 // presents the user interface controls, creates and manages the popup menu. 9 // presents the user interface controls, creates and manages the popup menu.
10 10
11 #include "chrome/browser/views/blocked_popup_container.h" 11 #include "chrome/browser/views/blocked_popup_container.h"
12 12
13 #include <math.h> 13 #include <math.h>
14 14
15 #include "app/l10n_util.h"
15 #include "app/resource_bundle.h" 16 #include "app/resource_bundle.h"
16 #include "base/string_util.h" 17 #include "base/string_util.h"
17 #include "chrome/browser/extensions/extension_function_dispatcher.h" 18 #include "chrome/browser/extensions/extension_function_dispatcher.h"
18 #include "chrome/browser/profile.h" 19 #include "chrome/browser/profile.h"
19 #include "chrome/browser/tab_contents/tab_contents.h" 20 #include "chrome/browser/tab_contents/tab_contents.h"
20 #include "chrome/common/gfx/chrome_canvas.h" 21 #include "chrome/common/gfx/chrome_canvas.h"
21 #include "chrome/common/gfx/path.h" 22 #include "chrome/common/gfx/path.h"
22 #include "chrome/common/l10n_util.h"
23 #include "chrome/common/notification_service.h" 23 #include "chrome/common/notification_service.h"
24 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
25 #include "chrome/views/background.h" 25 #include "chrome/views/background.h"
26 #include "chrome/views/controls/button/image_button.h" 26 #include "chrome/views/controls/button/image_button.h"
27 #include "chrome/views/controls/button/menu_button.h" 27 #include "chrome/views/controls/button/menu_button.h"
28 #include "grit/generated_resources.h" 28 #include "grit/generated_resources.h"
29 #include "grit/theme_resources.h" 29 #include "grit/theme_resources.h"
30 30
31 namespace { 31 namespace {
32 // Menu item ID for the "Notify me when a popup is blocked" checkbox. (All 32 // Menu item ID for the "Notify me when a popup is blocked" checkbox. (All
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 483
484 void BlockedPopupContainer::CloseEachTabContents() { 484 void BlockedPopupContainer::CloseEachTabContents() {
485 while (!blocked_popups_.empty()) { 485 while (!blocked_popups_.empty()) {
486 blocked_popups_.back().first->set_delegate(NULL); 486 blocked_popups_.back().first->set_delegate(NULL);
487 delete blocked_popups_.back().first; 487 delete blocked_popups_.back().first;
488 blocked_popups_.pop_back(); 488 blocked_popups_.pop_back();
489 } 489 }
490 490
491 blocked_popups_.clear(); 491 blocked_popups_.clear();
492 } 492 }
OLDNEW
« no previous file with comments | « chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698