summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/omnibox/omnibox_popup_non_view.cc
blob: 288ee11f36bb65b256f1fcce65c05df400d7b2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/omnibox/omnibox_popup_non_view.h"

#include "ui/gfx/image/image.h"
#include "ui/gfx/rect.h"

OmniboxPopupNonView::OmniboxPopupNonView(OmniboxEditModel* edit_model)
  : model_(this, edit_model) {
}

OmniboxPopupNonView::~OmniboxPopupNonView() {
}

bool OmniboxPopupNonView::IsOpen() const {
  return !model_.result().empty();
}

void OmniboxPopupNonView::InvalidateLine(size_t line) {
}

void OmniboxPopupNonView::UpdatePopupAppearance() {
}

gfx::Rect OmniboxPopupNonView::GetTargetBounds() {
  // Non-view bounds never obscure the page, so return an empty rect.
  return gfx::Rect();
}

void OmniboxPopupNonView::PaintUpdatesNow() {
  // TODO(beng): remove this from the interface.
}

void OmniboxPopupNonView::OnDragCanceled() {
}