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

Side by Side Diff: third_party/WebKit/Source/web/ColorChooserUIController.cpp

Issue 2858493002: Rename AXObject to AXObjectImpl in modules/ and web/ (Closed)
Patch Set: Reverted unexpected change to blink rename merge helper Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void ColorChooserUIController::SetSelectedColor(const Color& color) { 59 void ColorChooserUIController::SetSelectedColor(const Color& color) {
60 if (chooser_) 60 if (chooser_)
61 chooser_->SetSelectedColor(static_cast<WebColor>(color.Rgb())); 61 chooser_->SetSelectedColor(static_cast<WebColor>(color.Rgb()));
62 } 62 }
63 63
64 void ColorChooserUIController::EndChooser() { 64 void ColorChooserUIController::EndChooser() {
65 if (chooser_) 65 if (chooser_)
66 chooser_->EndChooser(); 66 chooser_->EndChooser();
67 } 67 }
68 68
69 AXObject* ColorChooserUIController::RootAXObject() { 69 AXObjectImpl* ColorChooserUIController::RootAXObject() {
70 return 0; 70 return 0;
71 } 71 }
72 72
73 void ColorChooserUIController::DidChooseColor(const WebColor& color) { 73 void ColorChooserUIController::DidChooseColor(const WebColor& color) {
74 DCHECK(client_); 74 DCHECK(client_);
75 client_->DidChooseColor(Color(static_cast<RGBA32>(color))); 75 client_->DidChooseColor(Color(static_cast<RGBA32>(color)));
76 } 76 }
77 77
78 void ColorChooserUIController::DidEndChooser() { 78 void ColorChooserUIController::DidEndChooser() {
79 chooser_ = nullptr; 79 chooser_ = nullptr;
80 if (client_) 80 if (client_)
81 client_->DidEndChooser(); 81 client_->DidEndChooser();
82 } 82 }
83 83
84 void ColorChooserUIController::OpenColorChooser() { 84 void ColorChooserUIController::OpenColorChooser() {
85 DCHECK(!chooser_); 85 DCHECK(!chooser_);
86 WebLocalFrameImpl* frame = WebLocalFrameImpl::FromFrame(frame_); 86 WebLocalFrameImpl* frame = WebLocalFrameImpl::FromFrame(frame_);
87 WebFrameClient* web_frame_client = frame->Client(); 87 WebFrameClient* web_frame_client = frame->Client();
88 if (!web_frame_client) 88 if (!web_frame_client)
89 return; 89 return;
90 chooser_ = WTF::WrapUnique(web_frame_client->CreateColorChooser( 90 chooser_ = WTF::WrapUnique(web_frame_client->CreateColorChooser(
91 this, static_cast<WebColor>(client_->CurrentColor().Rgb()), 91 this, static_cast<WebColor>(client_->CurrentColor().Rgb()),
92 client_->Suggestions())); 92 client_->Suggestions()));
93 } 93 }
94 94
95 } // namespace blink 95 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698