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

Unified Diff: chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc

Issue 192483007: Move chromeos/display/* to ui/display/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include display.gyp into ChromeOS builds only Created 6 years, 9 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
Index: chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
diff --git a/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
index b8f699250b2740faf92c07cbd7917d4b8036e9d7..ce336e8f7078d2bdde8633bc6e502e5ef2f4d16b 100644
--- a/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
+++ b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.cc
@@ -20,8 +20,8 @@
#if defined(OS_CHROMEOS)
#include "ash/shell.h"
#include "ash/shell_delegate.h"
-#include "chromeos/display/output_configurator.h"
#include "ui/aura/window.h"
+#include "ui/display/chromeos/output_configurator.h"
#include "ui/gfx/screen.h"
#endif
@@ -96,13 +96,13 @@ class PepperOutputProtectionMessageFilter::Delegate
int32_t OnEnableProtection(uint32_t desired_method_mask);
private:
- chromeos::OutputConfigurator::OutputProtectionClientId GetClientId();
+ ui::OutputConfigurator::OutputProtectionClientId GetClientId();
// Used to lookup the WebContents associated with this PP_Instance.
int render_process_id_;
int render_frame_id_;
- chromeos::OutputConfigurator::OutputProtectionClientId client_id_;
+ ui::OutputConfigurator::OutputProtectionClientId client_id_;
// The display id which the renderer currently uses.
int64 display_id_;
// The last desired method mask. Will enable this mask on new display if
@@ -114,7 +114,7 @@ PepperOutputProtectionMessageFilter::Delegate::Delegate(int render_process_id,
int render_frame_id)
: render_process_id_(render_process_id),
render_frame_id_(render_frame_id),
- client_id_(chromeos::OutputConfigurator::kInvalidClientId),
+ client_id_(ui::OutputConfigurator::kInvalidClientId),
display_id_(0) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
@@ -123,7 +123,7 @@ PepperOutputProtectionMessageFilter::Delegate::Delegate(int render_process_id,
PepperOutputProtectionMessageFilter::Delegate::~Delegate() {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- chromeos::OutputConfigurator* configurator =
+ ui::OutputConfigurator* configurator =
ash::Shell::GetInstance()->output_configurator();
configurator->UnregisterOutputProtectionClient(client_id_);
@@ -136,20 +136,20 @@ PepperOutputProtectionMessageFilter::Delegate::~Delegate() {
}
}
-chromeos::OutputConfigurator::OutputProtectionClientId
+ui::OutputConfigurator::OutputProtectionClientId
PepperOutputProtectionMessageFilter::Delegate::GetClientId() {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- if (client_id_ == chromeos::OutputConfigurator::kInvalidClientId) {
+ if (client_id_ == ui::OutputConfigurator::kInvalidClientId) {
content::RenderFrameHost* rfh =
content::RenderFrameHost::FromID(render_process_id_, render_frame_id_);
if (!GetCurrentDisplayId(rfh, &display_id_))
- return chromeos::OutputConfigurator::kInvalidClientId;
+ return ui::OutputConfigurator::kInvalidClientId;
gfx::NativeView native_view = rfh->GetNativeView();
if (!native_view)
- return chromeos::OutputConfigurator::kInvalidClientId;
+ return ui::OutputConfigurator::kInvalidClientId;
native_view->AddObserver(this);
- chromeos::OutputConfigurator* configurator =
+ ui::OutputConfigurator* configurator =
ash::Shell::GetInstance()->output_configurator();
client_id_ = configurator->RegisterOutputProtectionClient();
}
@@ -167,7 +167,7 @@ int32_t PepperOutputProtectionMessageFilter::Delegate::OnQueryStatus(
return PP_ERROR_FAILED;
}
- chromeos::OutputConfigurator* configurator =
+ ui::OutputConfigurator* configurator =
ash::Shell::GetInstance()->output_configurator();
bool result = configurator->QueryOutputProtectionStatus(
GetClientId(), display_id_, link_mask, protection_mask);
@@ -192,7 +192,7 @@ int32_t PepperOutputProtectionMessageFilter::Delegate::OnEnableProtection(
uint32_t desired_method_mask) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- chromeos::OutputConfigurator* configurator =
+ ui::OutputConfigurator* configurator =
ash::Shell::GetInstance()->output_configurator();
bool result = configurator->EnableOutputProtection(
GetClientId(), display_id_, desired_method_mask);
@@ -217,7 +217,7 @@ void PepperOutputProtectionMessageFilter::Delegate::OnWindowHierarchyChanged(
if (desired_method_mask_ != ui::OUTPUT_PROTECTION_METHOD_NONE) {
// Display changed and should enable output protections on new display.
- chromeos::OutputConfigurator* configurator =
+ ui::OutputConfigurator* configurator =
ash::Shell::GetInstance()->output_configurator();
configurator->EnableOutputProtection(GetClientId(), new_display_id,
desired_method_mask_);

Powered by Google App Engine
This is Rietveld 408576698