| OLD | NEW |
| 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/views/accessibility/invert_bubble_view.h" | 5 #include "chrome/browser/ui/views/accessibility/invert_bubble_view.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/views/frame/browser_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 11 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" | 11 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" |
| 12 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 12 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| 13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
| 15 #include "components/prefs/pref_service.h" | 15 #include "components/prefs/pref_service.h" |
| 16 #include "components/strings/grit/components_strings.h" |
| 16 #include "content/public/browser/page_navigator.h" | 17 #include "content/public/browser/page_navigator.h" |
| 17 #include "grit/components_strings.h" | |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
| 20 #include "ui/base/window_open_disposition.h" | 20 #include "ui/base/window_open_disposition.h" |
| 21 #include "ui/gfx/color_utils.h" | 21 #include "ui/gfx/color_utils.h" |
| 22 #include "ui/views/bubble/bubble_dialog_delegate.h" | 22 #include "ui/views/bubble/bubble_dialog_delegate.h" |
| 23 #include "ui/views/controls/label.h" | 23 #include "ui/views/controls/label.h" |
| 24 #include "ui/views/controls/link.h" | 24 #include "ui/views/controls/link.h" |
| 25 #include "ui/views/controls/link_listener.h" | 25 #include "ui/views/controls/link_listener.h" |
| 26 #include "ui/views/layout/grid_layout.h" | 26 #include "ui/views/layout/grid_layout.h" |
| 27 #include "ui/views/layout/layout_constants.h" | 27 #include "ui/views/layout/layout_constants.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 views::View* anchor = browser_view->toolbar()->app_menu_button(); | 169 views::View* anchor = browser_view->toolbar()->app_menu_button(); |
| 170 if (color_utils::IsInvertedColorScheme() && anchor && anchor->GetWidget() && | 170 if (color_utils::IsInvertedColorScheme() && anchor && anchor->GetWidget() && |
| 171 !pref_service->GetBoolean(prefs::kInvertNotificationShown)) { | 171 !pref_service->GetBoolean(prefs::kInvertNotificationShown)) { |
| 172 pref_service->SetBoolean(prefs::kInvertNotificationShown, true); | 172 pref_service->SetBoolean(prefs::kInvertNotificationShown, true); |
| 173 InvertBubbleView* delegate = new InvertBubbleView(browser, anchor); | 173 InvertBubbleView* delegate = new InvertBubbleView(browser, anchor); |
| 174 views::BubbleDialogDelegateView::CreateBubble(delegate)->Show(); | 174 views::BubbleDialogDelegateView::CreateBubble(delegate)->Show(); |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace chrome | 178 } // namespace chrome |
| OLD | NEW |