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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some new gfx::Screen additions Created 8 years, 2 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/chromeos/input_method/candidate_window.cc
diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc
index 17010c50262ac112dd34acc6cd3fb6f03a0c04eb..8aebd1b40cfe4bd3bfbb834f752120cdf125e3a9 100644
--- a/chrome/browser/chromeos/input_method/candidate_window.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "ash/shell.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
@@ -1216,8 +1217,8 @@ void CandidateWindowView::ResizeAndMoveParentFrame() {
const int horizontal_offset = GetHorizontalOffset();
gfx::Rect old_bounds = parent_frame_->GetClientAreaBoundsInScreen();
- gfx::Rect screen_bounds =
- gfx::Screen::GetDisplayMatching(cursor_location_).work_area();
+ gfx::Rect screen_bounds = ash::Shell::GetAshScreen()->GetDisplayMatching(
+ cursor_location_).work_area();
// The size.
gfx::Rect frame_bounds = old_bounds;
frame_bounds.set_size(GetPreferredSize());
@@ -1511,7 +1512,7 @@ void InfolistWindowView::UpdateCandidates(
void InfolistWindowView::ResizeAndMoveParentFrame() {
int x, y;
gfx::Rect old_bounds = parent_frame_->GetClientAreaBoundsInScreen();
- gfx::Rect screen_bounds = gfx::Screen::GetDisplayNearestWindow(
+ gfx::Rect screen_bounds = ash::Shell::GetAshScreen()->GetDisplayNearestWindow(
parent_frame_->GetNativeView()).work_area();
// The size.
gfx::Rect frame_bounds = old_bounds;

Powered by Google App Engine
This is Rietveld 408576698