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

Unified Diff: chrome/browser/ui/views/screen_capture_notification_ui_views.cc

Issue 2299993005: Prepare some BlueButtons in chrome browser ui for switch to Harmony. (Closed)
Patch Set: restore include 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/sad_tab_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/screen_capture_notification_ui_views.cc
diff --git a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
index b26026491be2173851216e61addf1554f8366f71..ba6d195620f9a38511b274c714bde8c0c8955ff8 100644
--- a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
+++ b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
@@ -16,7 +16,7 @@
#include "ui/display/screen.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/bubble/bubble_frame_view.h"
-#include "ui/views/controls/button/blue_button.h"
+#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/link.h"
#include "ui/views/controls/link_listener.h"
@@ -119,7 +119,7 @@ class ScreenCaptureNotificationUIViews
NotificationBarClientView* client_view_;
views::ImageView* gripper_;
views::Label* label_;
- views::BlueButton* stop_button_;
+ views::Button* stop_button_;
views::Link* hide_link_;
DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUIViews);
@@ -128,11 +128,11 @@ class ScreenCaptureNotificationUIViews
ScreenCaptureNotificationUIViews::ScreenCaptureNotificationUIViews(
const base::string16& text)
: text_(text),
- client_view_(NULL),
- gripper_(NULL),
- label_(NULL),
- stop_button_(NULL),
- hide_link_(NULL) {
+ client_view_(nullptr),
+ gripper_(nullptr),
+ label_(nullptr),
+ stop_button_(nullptr),
+ hide_link_(nullptr) {
set_owned_by_client();
gripper_ = new views::ImageView();
@@ -146,7 +146,8 @@ ScreenCaptureNotificationUIViews::ScreenCaptureNotificationUIViews(
base::string16 stop_text =
l10n_util::GetStringUTF16(IDS_MEDIA_SCREEN_CAPTURE_NOTIFICATION_STOP);
- stop_button_ = new views::BlueButton(this, stop_text);
+ stop_button_ =
+ views::MdTextButton::CreateSecondaryUiBlueButton(this, stop_text);
AddChildView(stop_button_);
// TODO(jiayl): IDS_PASSWORDS_PAGE_VIEW_HIDE_BUTTON is used for the need to
« no previous file with comments | « chrome/browser/ui/views/sad_tab_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698