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

Side by Side Diff: chrome/browser/ui/global_error/global_error.cc

Issue 2280033003: [Mac] Update the AppMenu Error icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 | « no previous file | 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) 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 #include "chrome/browser/ui/global_error/global_error.h" 5 #include "chrome/browser/ui/global_error/global_error.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" 9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h"
10 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
11 #include "ui/base/resource/resource_bundle.h" 11 #include "ui/base/resource/resource_bundle.h"
12 #include "ui/gfx/image/image.h" 12 #include "ui/gfx/image/image.h"
13 13
14 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) 14 #if !defined(OS_ANDROID)
15 #include "ui/gfx/color_palette.h" 15 #include "ui/gfx/color_palette.h"
16 #include "ui/gfx/paint_vector_icon.h" 16 #include "ui/gfx/paint_vector_icon.h"
17 #include "ui/gfx/vector_icons_public.h" 17 #include "ui/gfx/vector_icons_public.h"
18 #endif 18 #endif
19 19
20 // GlobalError --------------------------------------------------------------- 20 // GlobalError ---------------------------------------------------------------
21 21
22 GlobalError::GlobalError() {} 22 GlobalError::GlobalError() {}
23 23
24 GlobalError::~GlobalError() {} 24 GlobalError::~GlobalError() {}
25 25
26 GlobalError::Severity GlobalError::GetSeverity() { return SEVERITY_MEDIUM; } 26 GlobalError::Severity GlobalError::GetSeverity() { return SEVERITY_MEDIUM; }
27 27
28 gfx::Image GlobalError::MenuItemIcon() { 28 gfx::Image GlobalError::MenuItemIcon() {
29 #if defined(OS_MACOSX) || defined(OS_ANDROID) 29 #if defined(OS_ANDROID)
30 return ResourceBundle::GetSharedInstance().GetNativeImageNamed( 30 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(
31 IDR_INPUT_ALERT_MENU); 31 IDR_INPUT_ALERT_MENU);
32 #else 32 #else
33 return gfx::Image(gfx::CreateVectorIcon( 33 return gfx::Image(gfx::CreateVectorIcon(
34 gfx::VectorIconId::BROWSER_TOOLS_ERROR, gfx::kGoogleYellow700)); 34 gfx::VectorIconId::BROWSER_TOOLS_ERROR, gfx::kGoogleYellow700));
35 #endif 35 #endif
36 } 36 }
37 37
38 // GlobalErrorWithStandardBubble --------------------------------------------- 38 // GlobalErrorWithStandardBubble ---------------------------------------------
39 39
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 bool GlobalErrorWithStandardBubble::ShouldAddElevationIconToAcceptButton() { 76 bool GlobalErrorWithStandardBubble::ShouldAddElevationIconToAcceptButton() {
77 return false; 77 return false;
78 } 78 }
79 79
80 void GlobalErrorWithStandardBubble::BubbleViewDidClose(Browser* browser) { 80 void GlobalErrorWithStandardBubble::BubbleViewDidClose(Browser* browser) {
81 DCHECK(browser); 81 DCHECK(browser);
82 bubble_view_ = NULL; 82 bubble_view_ = NULL;
83 OnBubbleViewDidClose(browser); 83 OnBubbleViewDidClose(browser);
84 } 84 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698