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

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

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 6e453ce676db1cefb6561d12c51f9c31c715ff89..6dce7ecebf2e6fca96ee41f94f4d8ea2f68f2a4a 100644
--- a/chrome/browser/chromeos/input_method/candidate_window.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc
@@ -1216,7 +1216,7 @@ void CandidateWindowView::ResizeAndMoveParentFrame() {
const int height = cursor_location_.height();
const int horizontal_offset = GetHorizontalOffset();
- gfx::Rect old_bounds = parent_frame_->GetClientAreaScreenBounds();
+ gfx::Rect old_bounds = parent_frame_->GetClientAreaBoundsInScreen();
gfx::Rect screen_bounds = gfx::Screen::GetDisplayNearestWindow(
parent_frame_->GetNativeView()).work_area();
// The size.
@@ -1511,7 +1511,7 @@ void InfolistWindowView::UpdateCandidates(
void InfolistWindowView::ResizeAndMoveParentFrame() {
int x, y;
- gfx::Rect old_bounds = parent_frame_->GetClientAreaScreenBounds();
+ gfx::Rect old_bounds = parent_frame_->GetClientAreaBoundsInScreen();
gfx::Rect screen_bounds = gfx::Screen::GetDisplayNearestWindow(
parent_frame_->GetNativeView()).work_area();
// The size.
@@ -1522,7 +1522,7 @@ void InfolistWindowView::ResizeAndMoveParentFrame() {
gfx::Rect candidatewindow_bounds;
if (candidate_window_frame_ != NULL) {
candidatewindow_bounds =
- candidate_window_frame_->GetClientAreaScreenBounds();
+ candidate_window_frame_->GetClientAreaBoundsInScreen();
}
if (screen_bounds.height() == 0 || screen_bounds.width() == 0) {
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer_unittest.cc ('k') | chrome/browser/chromeos/login/screen_locker_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698